-
( or [ expected
Hi all,
Just wondering if anyone could help. I'm writing a small mulichoice quiz progrmam but i can't seem to get an arraylist to hold my questions. I recieve
from the class that creates the arraylist to hold the questions. I can't seem to spot what i've done wrong.
Code:
import java.util.ArrayList;
public class Quiz
{
public Quiz()
{
Questions = new ArrayList<String>();
}
}
Regards,
-
Re: ( or [ expected
First off, Questions is not declared. Or am I missing something?
Edit: Or I assume you're using Java compiler lower than 5, yet you're using a Java 5 compliant syntax.
-
Re: ( or [ expected
The problem is: you are using old version of java, you must have java 1.5