I'm trying to create a simple program that uses a text file to randomly generate a sequence of letters. Where I stuck is how to use the info in the file to choose the letters.
Heres the file
10 a
50 b
100 c
I roll a random number from 1-100 and then pick the letter that matches the number. I can read the file, and roll the number fine the problem is at the >>>>> marker.
How do I compare the int roll to the number in the
String?
Thanks this is my first post on this new board. I am completely self taught in
java. It probably shows
Mario
[ edited to preserve formatting using the [code] and [/code]
UBB tags -ds ]
[ April 09, 2004: Message edited by: Dirk Schreckmann ]