With google use the intruction
Followed by the type of sourcecode you want to find. You can use the + and - characters followed by words you do and do not want to see as a result.
example : filetype:java "extends applet" -package 4k
(Will bring up a small list of java sourcecode)