Update StudentList.java

Added implementation for getNames()