Thread: Arrays
View Single Post
Unread 9 Nov 2006, 09:49   #9
Androme
☆ ♥ 
 
Androme's Avatar
 
Join Date: Jan 2003
Posts: 3,489
Androme can only hope to improve
Re: Arrays

Quote:
Originally Posted by Phil^

the (object orientated ) way i would do it though is to create a new class called question, and in it would be two strings. one for question and one for answer, along with the accessor and mutator methods for it.
those question classes would be stored in an arraylist giving you as many as you want, but without having to worry about indexes since each question class stores both the question and the answer

how does this work? storing an entire class in arraylist?
__________________
R3: LegioN (came #32) || R4: BlueTuba
R5: WolfPack Order || R6: Wolfpack
R7: Fury
----------retired-------
R52-R55: Apprime
R56-R57: FaceLess
R58-60: Apprime/Ultores
Androme is offline   Reply With Quote