Create checkReferencedClass.java

- print out referenced classes with the input class