• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in readline() method  RSS feed

 
Vishnu Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error in BufferedStream readline method:

BufferedTest.java:25: cannot find symbol
symbol : method readline()
location: class java.io.BufferedReader
s=bin.readline();
^

Please tell me the reason for this and what the solution for it???
 
Nicola Garofalo
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that the method name is readLine() not readline().

Anyway if you clicked on the link you created with your post you would have seen in the API documentation the answer to your question.
 
Vishnu Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nicola Garofalo wrote:The problem is that the method name is readLine() not readline().

Anyway if you clicked on the link you created with your post you would have seen in the API documentation the answer to your question.


Thanks Nicola. I did not check the API.
 
Campbell Ritchie
Marshal
Posts: 56521
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The sooner somebody learns to read the API documentation, the better.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!