View Single Post
Old 03-19-2011, 04:39 AM   PM User | #2
Aradon
Moderator-san


 
Aradon's Avatar
 
Join Date: Jun 2005
Location: USA
Posts: 734
Thanks: 0
Thanked 20 Times in 19 Posts
Aradon is on a distinguished road
Most likely what is happening is that you are trying to make an Int from a String for something that isn't an int.

That is, your input file would look like this:

Code:
Aradon Strider 55555
Mother Strider 44455
Father Strider 21345
Your Enter Data Class reads one line, then another line, then tries to read an int. So

Code:
first == "Aradon Strider 55555"
second == "Mother Strider 44455"
zip == Father
When it comes to the "father" and putting it into an Int it doesn't work out.
__________________
"To iterate is human, to recurse divine." -L. Peter Deutsch
Aradon is offline   Reply With Quote