I want to instantiate an ArrayList in java. I realize the method to doing this is:
ArrayList<String> determiners = new ArrayList <String>(); determiners.add("A");
Where "A" is added to the arraylist once created. However, the problem I'm having is that the .add method doesn't work unless in a main method. What is the santax for making it work in a class without the main method.