Programming in Java language

The most important commands from Java programming language in one place, a unique comparison and each command-operator is shown using a piece of program. Statements-operators of these sample programs are clickable, so with a simple click we have more information available.

Programming language Java:


Examples - Java

Java
x = (float)64 / 8;   // x=8
y = x / 0.5;   // y=16
z = ((float)(x * 2) / y +5);// z=1.1
Java
i=0;
while (i<10) ++i;
x =0;
while (i<20)
{
 i= i+2;
 if (i==16)
 {
    continue;
 }
 x++; 
}

Other pieces of example codes:
Java
~ 2
if (i==10)
     break;
   else 
   {
     i--;
   }
70 / 8
x = 1.234
(float)i
xmin = -32768
Languages: en hu cz sk