Let's say I have a method called 'test' which should return the arraylist called 'theList' containing X number of Integers.
How would I do that?
public static void test(){
SOME CODE
...
return theList
}
What should 'void' and 'theList' be replaced with in that code to make it work?