Welcome to Beginner's. You can find details of that Exception here. There is no class of the name you have called. Read what you have written on screen very very carefully and the error should become obvious.
By the way: don't put so much code in the main method. Don't simply catch Exception; in fact there is no Exception-throwing code in what you quoted. And you aren't using the import at all. You ought to use the .length parameter in for loops when traversing arrays.