>>Look through it for the class keyword, preceded and followed by whitespace (not .class) But what if the word 'class' is used in a comment of an interface? You'd need to parse out all comments from the Java files as well, especially comments that come before the class declaration....