try combining these functions
static final String ReadLn (int maxLg) // utility function to read from stdin
{
byte lin[] = new byte [maxLg];
int lg = 0, car = -1;
try
{
while (lg < maxLg)
{
car = System.in.read();
if ((car < 0) || (car == '\n')) break;
lin [lg++] += car;
}
}
catch ...
Search found 2 matches
- Tue Oct 04, 2005 3:22 am
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 67864
- Sun Dec 05, 2004 1:54 am
- Forum: Java
- Topic: Why don't show the Compilation Error Message from the gcj?
- Replies: 3
- Views: 3649
Why don't show the Compilation Error Message from the gcj?
I have JSDK 1.42 here, my codes always compiles here, but almost always I get CE when I submit.
If its to hard to update the JSDK here, why don't let us see what was the compilation error (the message from the compiler) that has the number of the line that is with problem....
Would be easier to ...
If its to hard to update the JSDK here, why don't let us see what was the compilation error (the message from the compiler) that has the number of the line that is with problem....
Would be easier to ...