Just do this:
ArrayList<string> section = new ArrayList<string>();
section.add("name1");
section.add("name2");
section.add("name3");
...
section.add("name10");
0) Why are you using a method to do something as simple as adding a student name to the arraylist?
1) I don't understand why you're calling
section.section.add
. This shouldn't even compile (of course, Java is its own animal, and i don't write java code).
2) Consider using whatever debugger is available to you. It will reveal ALL of your mistakes in less time than it took you to type this question and wait for a response.