Error by Using DataInputStream
Hi All,
This is kiran . I wrten a simple code using "DataInputStream" in arrays . am geting error while compiling the program . Below shown is my program
"AND THE ERROR IS"
C:\Java>javac FirstArray.java
FirstArray.java:10: cannot find symbol
symbol : method readline()
location: class java.io.DataInputStream
name = d.readline();
^
FirstArray.java:13: cannot find symbol
symbol : method readline()
location: class java.io.DataInputStream
marks[i] = Integer.parseInt(d.readline());
^
2 errors
Please give me the solution for this error .
Re: Error by Using DataInputStream
I'd recommend looking at the API for DataInputStream...there is no method defined for readline (java is case sensitive), and for the method I expect you with to use, readLine is deprecated.
Error by Using DataInputStream
tanq soo much the error get solved