We all use Google and other Search Engines for searching anything under the sun. Are there any sites like these for searching source code, that new comers and experienced programmers alike, can search for sample code? Here are a couple of links to search for a particular class/method in Java:
You can search for keyword like Collection, it will fetch samples from a lot of Open Source projects. I use it to find standard (popular?) ways of using any API.
For e.g., ArrayList:
Krugle is another popular site. Here is Krugle search for Geocoding:
Here is a page listing few more sites like these:
Happy (code) surfing!