Search found 3 matches

by luckyman
Sat Oct 23, 2004 8:56 pm
Forum: Volume 5 (500-599)
Topic: 575 - Skew Binary
Replies: 18
Views: 6311

575 WA (JAVA)

here is my code
[java]import java.io.IOException;

class Main
{
static String ReadLn (int maxLg)
{
byte lin[] = new byte [maxLg];
int lg = 0, car = -1;
String line = "";
try
{
while (lg < maxLg)
{
car = System.in.read();
if ((car < 0) || (car == '\n')) break;
lin [lg++] += car ...
by luckyman
Fri Oct 22, 2004 6:21 pm
Forum: Java
Topic: Compile Error-Double
Replies: 2
Views: 2562

Thanks for your help
I did not get a Compile Error this time
but i got a WA instead
by luckyman
Fri Oct 22, 2004 9:05 am
Forum: Java
Topic: Compile Error-Double
Replies: 2
Views: 2562

Compile Error-Double

When I submitted 579, I got a Compile Error.


03001178_24.java: In class `Main':
03001178_24.java: In method `start()':
03001178_24.java:42: Can't find method `parseDouble(Ljava/lang/String;)' in class `java.lang.Double'.
h = Double.parseDouble(st.nextToken());
^
03001178_24.java:43: Can't find ...

Go to advanced search