Something like this:
BuffferedReader br = new BufferedReader(new WrapperClass(System.in));
You need to read the API doc to find what is the correct class for WrapperClass.
Type: Posts; User: Norm
Something like this:
BuffferedReader br = new BufferedReader(new WrapperClass(System.in));
You need to read the API doc to find what is the correct class for WrapperClass.
Start with System.in. Find a wrapper class to wrap it and that can be wrapped in the BufferedReader class.
@programmingtutorials The code as posted compiles with JDKs 1.5 and later.
To see the OPs problem, try compiling the posted code with JDK 1.4
Either rewrite the code to use classes available in version 1.4
or download and install a newer version of the JDK.
What version of the JDK are you using? The Scanner class came with version 1.5
Please post the full text of the compiler's error message.
Please copy full text of error message and paste it here. Here is a sample:
TestSorts.java:138: cannot find symbol
symbol : variable var
location: class TestSorts
var = 2;
...
The OP has not said what is wrong with his code. What symbol is the problem?
Don't we need that to be able to make suggestions?
Please post the full text here so parts can be selected for searches etc.
To copy the contents of the command prompt window:
Click on Icon in upper left corner
Select Edit
Select 'Select All' -...
Please post the full text of the error message.