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