Alright so I am working on a small program in which I have a method which accesses an Arraylist.
So:
public void setGroups(int groupA, int groupB, ArrayList< String > groups)
then I have my Arraylist in the body of my main method:
ArrayList groupSets = new ArrayList< String >(
Arrays.asList("group1", "group2" ));
So my question is, how do I call this code in my main method? My issue is with the arraylist part. Also these ints of groupA/B, I will be using these to pull elements out of the ArrayList.
So it would be like?:
playGame(0, 1, ArrayList< String > groupSets);
Except I know that the arraylist part is wrong and I am unsure if the ints are right or wrong as well, they seem right but I could be completely off. Please any help?!