hey everyone, i was wondering if someone could help me out with my code... i know some of it may be confusing and could probably be cut down a little bit but im ok with that.... my problem is that i need to sort my names array and as you can see i already have that coded and it compiles fine, but when i run the code i get the following errors:
Exception in
thread "main" java.lang.NullPointerException
at java.util.Arrays.mergeSort(Arrays.java:1144)
at java.util.Arrays.sort(Arrays.java:1079)
at grades.main(finalfinal.java:59)
if anyone could help me out with this and help explain what i can do to fix this, my computer science teacher was completley stumped when i showed him this, because it works completely fine when the sorting code is taken out, so again any and all help would be appreciated and thank you in advanced