一道测试题,大家试试
qccxf 2006-08-03 10:47:57 public class Testa {
static boolean foo(char c) {
System.out.println(c);
return true;
}
public static void main( String[] argv ) {
int i =0;
for ( foo('A'); foo('B')&&(i<2); foo('C')){
i++ ;
foo('D');
}
}
}
答案是:(不要上机测试)