huizhaoji 发表于 2013-1-27 06:09:48

帮我解释下面这个类的for循环里面的条件

public class Test {

static boolean foo(char c) {

System.out.print(c);

return true;

}

public static void main( String[] argv ) {

int i =0;

for ( foo('A'); foo('B')&&(i<2); foo('C')){

i++ ;
foo('D');
}
}
}
页: [1]
查看完整版本: 帮我解释下面这个类的for循环里面的条件