This is the first time I've posted a question so forgive me if I become vague. I will try my best to be as detailed as possible.
I am creating a card game in Java that compares card hit points. The hit points are accessed from an input file. The input file will look something like this:
69 M 4 4 Dragon Large medieval beast; 35 S 5 5 Alex Rodriguez Yankee slugger;
I would like to print 'Dragon' then below that 'Large medieval beast' on a Scanner window. The problem is:
How do I create a program that will also access the next line 'Alex Rodriguez' 'Yankee slugger'.
I would like to set up the program to insert new lines and then later access those lines using a cardNum (1st number). I call the lines data groups separated by a semi-colon.
I'm thinking that I need to create a while loop to come back and access the next data group. I need to be able to access the last to variables no matter how long or short they are.