请帮忙看看这个编译错误# Java - 爪哇娇娃
T*e
1 楼
代码如下:
import java.util.*;
public class test {
public static void main(String[] args) {
List list = new ArrayList( 100 );
for( int i = 0; i < 10; i ++ ){
list.add( i, String.valueOf( i*31 % 20 ) );
}
Collections.sort( list );
System.out.println( list );
}
}
编译错误:(jdk 1.5.0_01)
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Syntax error on token "Syntax error on token "=", != expected
Syntax
import java.util.*;
public class test {
public static void main(String[] args) {
List
for( int i = 0; i < 10; i ++ ){
list.add( i, String.valueOf( i*31 % 20 ) );
}
Collections.sort( list );
System.out.println( list );
}
}
编译错误:(jdk 1.5.0_01)
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Syntax error on token "Syntax error on token "=", != expected
Syntax