compile error

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
WLiu
New poster
Posts: 1
Joined: Fri Jun 28, 2002 3:52 pm

compile error

Post by WLiu » Fri Jun 28, 2002 4:11 pm

I wonder exactly what java packages are supported by now? I got compile error on
Arrays.sort, I got compile error on Set, I got compile error on new int [] {1, 1}, and now
I got compile error on Double.parseDouble??

00921004_24.java: In class `Main':
00921004_24.java: In method `work(java.lang.String)':
00921004_24.java:39: Can't find method `parseDouble(Ljava/lang/String;)' in class
`java.lang.Double'.
x[i] = Double.parseDouble(tok.nextToken());
^
00921004_24.java:42: Can't find method `parseDouble(Ljava/lang/String;)' in class
`java.lang.Double'.
y[i] = Double.parseDouble(tok.nextToken());
^
2 errors

Post Reply

Return to “Java”