Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help with a little information...

 
Ed Stevens
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting this error
: can not find symbol
symbol: method readint()
for the line--int len = Console.readint();
& symbol: method readString()
for-- BigInteger big = new BigInteger(Console.readString());
even though i have included -import java.io.*;

Please suggest me what to do:

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the API documentation for Console? Does Console have these methods?
 
Ed Stevens
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for delay: i apologize ,i have checked it is readline() not readstring() & readint is not mentioned there either....making amends..
 
Campbell Ritchie
Sheriff
Posts: 48910
58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ed Stevens:
sorry for delay: i apologize ,i have checked it is readline() not readstring() & readint is not mentioned there either....making amends..
Not quite: it's readLine etc. Java is case-sensitive, and you can get no end of confusion with tiny spelling errors like that in real code. Also, please read this FAQ.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic