Instead of this function, you could use:

ArrayList<String> students = new ArrayList<String>(Arrays.asList(studentsArray));