You code is unreadable. Check the Code Tag link in copeg's signature.

I suspect your problem is that you have the bubblesort method inside the main method. Make sure your opening and closing...