从简单的学起:
/**
* @version 1.10 10 Mar 1997
* @author Cay Horstmann
*/
public class Welcome
{ public static void main(String[] args)
{ String[] greeting = new String[3];
greeting[0] = "Welcome to Core Java";
greeting[1] = "by Cay Horstmann";
greeting[2] = "and Gary Cornell";
int i,k;
int j=0;
k=j++;
for (i = 0;
i < greeting.length;
i++)
System.out.println(greeting);
System.out.println("j="+j);
System.out.println("k="+k);
}
}