0

I have the code:

import java.io.*;
...     
public void test() {
...
            InputStreamReader inputStream = new InputStreamReader(System.in);
...     
}

but eclipse is not allowing the "in" part of the System.in.

When placing the '.' after System, I get offered many alternatives, but not 'in'.

the error message is given in eclipse is: "in cannot be resolved or is not a field".

I've been 'round in circles with it, but cannot see why - anyone have any ideas?

Running Eclipse on Debian Jessie.

Marsh
  • 101
  • 2

1 Answers1

0

Hope this helps, modify it as:

InputStreamReader inputStream = new InputStreamReader(java.lang.System.in);
Aditya
  • 2,385
  • 18
  • 25
  • Unless the OP has done something crazy like defining his own `System` class, the suggestion won't help. – Stephen C Aug 03 '16 at 13:30