Test.java:5: シンボルを見つけられません。
シンボル: クラス string
場所 : Test の クラス
string s = "abc";
^
Test.java:8: シンボルを見つけられません。
シンボル: 変数 str
場所 : Test の クラス
str = "xyz";
^
Test.java:13: シンボルを見つけられません。
シンボル: 変数 i
場所 : Test の クラス
System.out.println( i );
^
Test.java:16: シンボルを見つけられません。
シンボル: クラス ArrayList
場所 : Test の クラス
ArrayList list = new ArrayList();
^
Test.java:16: シンボルを見つけられません。
シンボル: クラス ArrayList
場所 : Test の クラス
ArrayList list = new ArrayList();
^
Test.java:20: シンボルを見つけられません。
シンボル: コンストラクタ StringBuilder(boolean)
場所 : java.lang.StringBuilder の クラス
StringBuilder sb = new StringBuilder( false );
class Test{
public static void main(String[] args){
// stringクラスは存在しない(正しくはString)
string s = "abc";
// 変数 str は宣言されていない
str = "xyz";
// 変数 i のスコープの外で変数 i を使用しようとしている
for( int i=0; i<10; i++ ){
}
System.out.println( i );
// java.util.ArrayList が import されていない
ArrayList list = new ArrayList();
// StringBuilderクラスに boolean を
// 引数にとるコンストラクタは存在しない
StringBuilder sb = new StringBuilder( false );
}
}