First off just signed up and I love the moose and the agreement...be nice right on I think I am in the right place.
I have recently started learning
java in anticipation of developing for android. I was making a program that would ask the user how many lines they wanted to jibber jabber then take that many lines of input and add it to an array list. Then randomly go through and print those strings back. My code works except one little glitch which I don't under stand. On the first pass of the for loop where it take the user input and adds it to the ArrayList it just displays the System.out.print(); but does not get the user input then on the second and all passes thereafter it works the way I wanted it to. Any insights would be very appreciated.
Here is the code its just one class and all in main. I know its bad practice but I am not planning on reusing my Jibber Jabber lol:
Also let me know if there is some way I am suposed to display code I am new to this forum.