0

When you read from the standard input in Eclipse, where does that input come from?

tbodt
  • 16,609
  • 6
  • 58
  • 83
Johnny
  • 633
  • 3
  • 9
  • 21

3 Answers3

6

It's in the same window as the standard console output, but you have to actually type something.

Matt Ball
  • 354,903
  • 100
  • 647
  • 710
  • Oh yes! It didn't work in the first time I tried. I found it is because I didn't press "Enter"... Thank you! – Johnny Aug 09 '13 at 02:42
4
  1. Run your program (right-click project -> 'Run As' -> 'Java Application')

  2. Click in the 'Console' tab field (Window -> Open Perspective -> Console)

  3. Type your input arguments, space-separated, and hit 'Enter'. Each line of your input is delimited with 'Enter'-key presses.

3. is where the inputs come from

cellepo
  • 4,001
  • 2
  • 38
  • 57
0

If you mean where is the text displayed, the answer is the Console tab. If you do not see this tab upon execution, go to Window -> Open Perspective -> Console.