<分区>
Possible Duplicate:
Why are we using i as a counter in loops?
Why are variables “i” and “j” used for counters?
这可能看起来很愚蠢,但为什么每个人都在 for 循环检查中使用 i(如果 i 已经在使用,则使用 j)?
意思是:
for(int i = 1;i <= 5;i++){
for(int j = 1;j <= i;j++){
System.out.print(i);
}
为什么是 i 和 j ?我们也可以使用 first 和 second 吗? Check this, all (9 out of 10) uses i, j.为什么 ?任何原因或只是因为每个人都这样做?