Jamal Taylor wrote:Okay my question, is when I print data from an ArrayList is there a methodology of controlling your output? See, I want to be able to read in data from a Text file, then store it in the Arraylist(This part was easy), and then print the data out in a quiz like format. Here is what the output should look like:...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
1. Read in Text File by using the scanner method
1) Read file one line at a time
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jamal Taylor wrote:I have a question. While I am writing my pseudocode is it at all possible to create a check to see if a character is a numeral instead of a letter?
I have a text file which is just a few questions written in a multiple choice format. What I want to do is after every question mark write a number let's say 4 for example...
I then can set an instance variable to that number and the instance variable can tell to the program...
As you see, I have already set the placeCounter to the size of the array...So how do I tell the program to record the next iteration after the question mark?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Don't get me started about those stupid light bulbs. |