I'm working on a gradebook program in Java and I ran into a problem with "unreachable code" If somebody could tell me what is causing this issue I'd appreciate it.
static ArrayList<String> assignments = new ArrayList<String>();
static ArrayList<String> grades = new ArrayList<String>();
public static String getAssignment(int a){
return assignments.get(a);
return grades.get(a);
}
It's giving me the error "unreachable code" on return grades.get(a);