Feed the code into some IDE such as NetBeans or Eclipse and you'll see all the errors.