//cd c:\HPTak\Program\JavaBasic3\Package //set CLASSPATH=.; //別フォルダ 必須かも? //javac TestList\Test.java //java TestList.Test 3 5 2 7 9 //java TestList.Test a c e f h k l package TestList; import java.util.*; import List.*; //別フォルダ 必須 public class Test { public static void main(String[] args) { ArrayList alt = new ArrayList(10); ArrayList alt2 = new ArrayList(10); int n=10; Random generator = new Random(); for (int i=0; i < n; i++) { int rand = generator.nextInt()/1000000; Integer rn = new Integer(rand); alt.add(i,rn); } for (int i=0; ijavac TestList\Test.java TestList\Test.java:9: パッケージ List は存在しません。 import List.*; //別フォルダ 必須 ^ TestList\Test.java:26: シンボルを解決できません。 シンボル: クラス Sentence 場所 : TestList.Test の クラス Sentence st3 = new Sentence(alt,s,alt2); ^ TestList\Test.java:30: シンボルを解決できません。 シンボル: クラス Fput 場所 : TestList.Test の クラス Fput ft = new Fput(s,alt); ^ など、エラー 9 個 set CLASSPATH=. をしなかったためか? C:\HPTak\Program\JavaBasic3\Package>set CLASSPATH=. C:\HPTak\Program\JavaBasic3\Package>javac TestList\Test.java C:\HPTak\Program\JavaBasic3\Package>java TestList.Test 3 5 2 7 9 Sentence Test [-1215, 311, 1996, 61, 994, -2079, 1732, -918, 709, 156, 6, 3, 5, 2, 7, 9] Fput Test [6, -1215, 311, 1996, 61, 994, -2079, 1732, -918, 709, 156, 6, 3, 5, 2, 7, 9] Bf Test [-1215, 311, 1996, 61, 994, -2079, 1732, -918, 709, 156, 6, 3, 5, 2, 7, 9] Insert Test [-1215, 6, 311, 1996, 61, 994, -2079, 1732, -918, 709, 156, 6, 3, 5, 2, 7, 9] */