I\'ve been assigned to do some work on a huge Java project, and the influence of several iterations of developers is obvious. There is no standard coding style, formatting, nam
I also recoomend using the IDE's features to improve code quality. For eclipse this what i would do:
In the preferences java > code style > formatter - define your own format and add it. after that right click the project and source < clean up. Choose sustom profile and configure. There are plenty of things you can do here like code formatting cleaning up imports converting legacy for loops into enhanced ones cleaning up unused code and many more.
After that i would do the things other people here suggested as well like using checkstyle, pmd, findbugs and so on.