Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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