Sunday, February 22, 2009

example for loop with multiple expressions

//example for with mutiple expressions

package flowcontrol;

public class ForWithMultiExp {

public static void main(String[] args) {
int i,j,no=3,f=0,k=10;
float sum=1.0f;
int prod,nopowx;
for(i=1,j=0,no=3,System.out.println("in For init") ; i<5;i++,f++,k+=99,System.out.println("in For update"),
System.out.println("in For update2")){
System.out.println("in For body");

in For update2
in For body
in For update
in For update2


Post a Comment