Hi there,
New to java but i have to jump into the deep end of things...
I have created an arraylist that stores answers for questions and answers for a quiz im doing.
public ArrayList storeAnswer3 ()
{
ans3.add("1995" );
ans3.add("1996" );//answer
ans3.add("1997" );
ans3.add("1998" );
return ans3;
}
What i need to do is declear that "1996" is the right answer. I been trying to look into get methods but to no success.
Can somebody help me???
Thanks in advance for any one who can help me!!
New to java but i have to jump into the deep end of things...
I have created an arraylist that stores answers for questions and answers for a quiz im doing.
public ArrayList storeAnswer3 ()
{
ans3.add("1995" );
ans3.add("1996" );//answer
ans3.add("1997" );
ans3.add("1998" );
return ans3;
}
What i need to do is declear that "1996" is the right answer. I been trying to look into get methods but to no success.
Can somebody help me???
Thanks in advance for any one who can help me!!
Comment