Test Aufgabe

Java

Test Aufgabe

in Java

import java.util.*;
import java.lang.*;
import java.io.*;
 
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int a;
		int b;
		int c;
 
		a = 2;
		b = 6;
		c = 1;
 
		c = a * c;
		a = b * 1;
		b = c * 1;
 
 
		System.out.println (" a ist : " + a);
		System.out.println ("\n");
		System.out.println (" b ist : " + b);
		// your code goes here
	}
}

Java Class

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

class Print
{
	public void drucke ()
	{
		System.out.println("Hello Bulme");
	}
	
	
	
		public void drucke (String str)
	{
		System.out.println(str);
	}
}	



	

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int xy;
		Print print = new Print();
		print.drucke();
		print.drucke("Hallo Bulme");
	}
}

no such method: tip