Results 1 to 2 of 2
- 11-05-2012, 12:25 AM #1
Member
- Join Date
- Oct 2012
- Posts
- 7
- Rep Power
- 0
Can you use ArrayList to populate and output an array multiple times?
My program is supposed to take the user's input for a series of questions, using an array. It should ask that series of questions twice, before outputting anything, and then output both sets of answers together. So if the user enters "A", "B", "C" the first time, and then "C", "B", "A" the second time, the output should read:
A
B
C
C
B
A
Can you use ArrayList to do this? Or is there some other way to store multiple sets of values for the same array?
Thank you.
- 11-05-2012, 01:08 AM #2
Member
- Join Date
- Sep 2012
- Posts
- 70
- Rep Power
- 0
Similar Threads
-
How to prevent printing the same output 5 times
By gabrielpr12 in forum New To JavaReplies: 4Last Post: 01-13-2012, 09:47 PM -
write line multiple times
By relith in forum New To JavaReplies: 3Last Post: 10-27-2010, 08:38 AM -
Issue with saving multiple times to a variable
By sidd0123 in forum New To JavaReplies: 3Last Post: 06-06-2010, 02:02 AM -
calling action class multiple times
By sindhu_shiva in forum Web FrameworksReplies: 0Last Post: 08-07-2009, 02:44 PM -
Playing an AudioInputStream multiple times
By pmgallardo in forum Advanced JavaReplies: 6Last Post: 03-09-2009, 04:29 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks