摘要:
我以前写for循环的例子:public class Client { public static void main(String[] args) { Client client = new Client(); for (int i = 0;i < client.count(); i++) { System.out.println("第"+i+"次"); } } public int count(){ return 10; //可能是复杂的计算 }}这样写每次循环... 阅读全文