Java class dependency
I have some lists and each list contains some java file names. I am pondering that is there any possible way to find out whether there is a dependency link between each java file in each list. 

    For example
    List1 = a.java, b.java, c.java
    List2 = p.java, e.java, n.java

I want to see is there any dependency relationship among a.java, b.java, and c.java in list1? And same for list2, in particular, dependency of java files inside a list not among different lists. 

is there any tool? or java package that I can use to analyze this?
Java class dependency
===

I have some lists and each list contains some java file names. I am pondering that is there any possible way to find out whether there is a dependency link between each java file in each list. 

    For example
    List1 = a.java, b.java, c.java
    List2 = p.java, e.java, n.java

I want to see is there any dependency relationship among a.java, b.java, and c.java in list1? And same for list2, in particular, dependency of java files inside a list not among different lists. 

is there any tool? or java package that I can use to analyze this?