摘要:
for循环很简单,用起来也很方便,但对for循环的执行顺序并不了解。举个例子:public class TestOrder { static boolean order(char c) { System.out.print(c); return true; } public static void main(String[] args) { int i = 0; for (order('A'); order('B') && (i < 2); order('C')) { i++; ... 阅读全文