public class AA
{
public static void main(String[] args)
{
int sum=0;
int countnum=0;
String everytime="";
int current;
for( current=1;current<=10;current++);
{
countnum++;
if(countnum==5)
System.out.println("5!");
break;
sum += current;
everytime=everytime+String.valueOf(sum)+String.valueOf("\n");
}
System.out.println("IT"+everytime);
System.out.println("sum"+sum);
}
}
为什么?
谢谢。