Page 1 of 1

cant find console reader?

Posted: Sat Oct 07, 2006 1:02 pm
by esiuol
hi i just installed textpad, tried running a simple program which reads one line of input but i get an error telling me it cant find the console reader

".java:5: cannot find symbol symbol : class consoleReader location: class Convert ConsoleReader console = new consoleReader(System.in);"

and the console reader is in the same folder which i saved my program in and its compiled..??
help.. :roll:

Posted: Sat Oct 07, 2006 2:14 pm
by MudGuard
Java is case sensitive.

ConsoleReader console = new consoleReader(System.in);

on the left hand side you have a type ConsoleReader, on the right hand side you try to create an instance of a different type consoleReader
consoleReader has nothing to do with
ConsoleReader ...

Posted: Sat Oct 07, 2006 3:08 pm
by esiuol
Bingo!! so obvious but cant say i wud hav spotted it...thanks :D

Posted: Sat Oct 14, 2006 6:17 pm
by Nicholas Jordan
esiuol wrote: so obvious but cant say i wud hav spotted it
about 40% of your work will work that way ... 40% is the texts and docs. It's the remaining 20% you should fret over.

:idea: Search for 80/20 rule on open web.