What part are you having trouble with?

The Exception class part, the array part, the sorting part (which is extra credit anyway), how to appropriately handle the exception, the entire thing,...