Minggu, 27 September 2009

JAVA = RETURN

public class Main {
public static int x, y;
public static long loong;
public static String mystr;
public static void myProc()
{
byte i;
boolean b;

i = 5;
b = i==7;
}

public static int myFunc()
{
return x*y;
}

public static void main(String[] args)
{
System.out.println("How are you?");
x = 4; y = 5;
System.out.println("myFunc is "+myFunc());

}

}

OUTPUT ::

0 komentar:

Posting Komentar