help with importing packages
I created a simple program where I wanted to use the GeneralPath class which is found in java.awt.geom.GeneralPath. At first I only imported java.awt.*, but when my program couldn't compile, I explicitly imported java.awt.geom.GeneralPath. When I did this, my program worked without any problems. My question is, why did I have to explicitly import this class, when the .* at the end of java.awt refers to all of it's sub-packages and subclasses? Surely it should also include the GeneralPath class?
Thanks in advance :)