标签:bool 运行 for 程序 boolean ret ++ class 结果
public class Test {
public static boolean show(char ch) {
System.out.print(ch);
return true;
}
public static void main(String[] args) {
int x = 1;
for (show(‘a‘); show(‘b‘) && x < 3; show(‘c‘)) {
show(‘d‘);
x++;
}
}
}
标签:bool 运行 for 程序 boolean ret ++ class 结果
原文地址:http://www.cnblogs.com/TusPark/p/7132035.html