I have a problem in my Java project, I have a bunch of projects (for example A, B, C…) that happen to have a Tools class in a tool folder in a path such as src.tool.Tools, the same path and same class name for all of them.
Now, I have my project Z that has in its build path all of these projects (A, B, C…). How can I make sure that when I import one Tool class I am importing the one I really need?
More complicated, if in A.Tool I have a method such as public int tool(){return 1} and in B.Tool another method such as public int tool(){return 0} How can I make sure I call the function I really want?
Thanks for all!