Find all files beneath the current directory that end with the extension .java and contain the characters StringBuffer.  Print the name of the file where a match is found.
find . -type f -name "*.java" -exec grep -l StringBuffer {} \;