Jump to content

Quick Question

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Nailer91

Nailer91

    Newbie

  • Members
  • Pip
  • 8 posts
Hi,
Would anyone know why Console.readInt() ,or Console.read in general, won't work on my laptop . It works fine for me in college but never on my own laptop. Would appreciate help from anyone because have an assignment which needs it and want to do it from home.
Thanks,
Nailer91.

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
Not every Java program you run is guaranteed to have a console. If I start the program from my IDE it won't, if I start the program from the command line I do.
Simply use a Scanner or bufferedReader with "System.in" as inputstream to read user input.

#3
isuru

isuru

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 233 posts
Well, if it is ok why don't you post your whole program here....
It will be easy to find a problem rather than guessing the issue.
Lost!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users