Thursday, July 30, 2009

Java [[1.5]] readstring method error?

Code:


--------------------------------------...


String choice = MyInput.readstring().trim();


if (choice.equals("1"))


{


newNumber();


processInput();


--------------------------------------...


Error:


======================================...


File: C:\Java programs\ISU\Programs\PhoneBook2.java [line: 32]


Error: cannot find symbol


symbol : method readstring()


location: class MyInput


======================================...





Program is a Phonebook for my computer class, im in Grade 12, and im having some debugging problems.


I was having trouble importing from another program, figured it out and now all i have really are petty errors (compared to what i had before)





If you want whole program please email me:iroq_monkey@yahoo.com





And yepp, thanks for helping, will give 20 pts.!

Java [[1.5]] readstring method error?
To solve your problem we need to know the class of "MyInput" (you question has not shown completely)


(or if MyInput is a class then need to know its methods)





As it is, MyInput does not have a method called "readstring()"


A common error in Java is capitalization eg "readString()" with a capital "S"


No comments:

Post a Comment