Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

java:reading input error?

  • 07-10-2006 01:03PM
    #1
    Posts: 101 ✭✭


    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:


Comments

  • Closed Accounts Posts: 198 ✭✭sh_o


    java is case sensitive - It may be that the name of the file is different from the class name?
    Upload the full code and it can be checked.


  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    consoleReader(System.in);

    should be..

    ConsoleReader(System.in);

    If you used Eclipse it would highlight this straight away and allow you to autocorrect.


Advertisement