Code: Select all
class megisto3ar
{
public static void main (String args[])
{
int a,b,c,meg; // a,b,c oi treis ari8moi, meg h metavlhth gia ton megisto
a=Integer.parseInt(args[0]); b=Integer.parseInt(args[1]);
c=Integer.parseInt(args[2]);
meg = a;
if (b > meg) meg = b;
if (c > meg) meg = c;
System.out.println("O megistos ari8mos metaksy twn "+a+" kai "+b+" kai
"+c+" einai o "+meg+".");
}
}
Code: Select all
void applyBrakes(){
if (isMoving) {
currentSpeed--;
} else {
System.err.println("The bicycle has already stopped!");
}
}