These days lot of Java code is available on internet and probably whatever class you want to write, someone has already written it in some project. In a simple e.g if I want to create an Address bean with fields like streetName, streetNumber, postalCode etc. someone has already created this bean class in their project, why not just search download(may be some quick changes) and use it in your project.
If the project is open source, personally I dont think that there will be any moral issues or are there?
What I found so far is grepcode.com, a Java code specific tool, which allows you to search by class names. For e.g PostalAddress
Are there any other tools available for finding Java code on class level? (for re-using)