Add some printlns to the code to see how far the code does get. If there are no compile errors and no runtime errors, it did something somewhere correctly.
Figure out where things go wrong, or at...