cant find console reader?

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
esiuol
Posts: 3
Joined: Fri Oct 06, 2006 9:14 pm

cant find console reader?

Post 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:
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post 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 ...
esiuol
Posts: 3
Joined: Fri Oct 06, 2006 9:14 pm

Post by esiuol »

Bingo!! so obvious but cant say i wud hav spotted it...thanks :D
User avatar
Nicholas Jordan
Posts: 124
Joined: Mon Dec 20, 2004 12:33 am
Location: Central Texas ISO Latin-1
Contact:

Post 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.
Post Reply