0

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

tbodt
  • 15,199
  • 5
  • 52
  • 78
Johnny
  • 613
  • 3
  • 8
  • 21

3 Answers3

6

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

Matt Ball
  • 332,322
  • 92
  • 617
  • 683
  • 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
3
  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
  • 2,827
  • 2
  • 31
  • 46
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.