Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Homepage
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");
}
}