I am a newbie in java and googling did not help me. So, bear with me...:P
I created a package acs. This package has got the class Gets which has the method foo().
Now, I created another class in the same package and tried to call the method foo(). Of course this will work - (new Gets()).foo();.
But I added an import import acs.Gets; and simply tried to use the method directly - foo(); as described in http://docs.oracle.com/javase/tutorial/java/package/usepkgs.html. But unfortunately, the code did not work. Please tell me where am I going wrong. Any help will be appreciated!