title: Importing packages and using instance variables
body: <p>I've got two pretty rudimentary questions regarding Java:</p>
  
  <p>First of all, why is it that importing java.awt.* doesn't also import java.awt.geom.*? Isn't everything within java.awt.geom inside of java.awt? I would assume so, judging by the name of the package.</p>
  
  <p>Secondly, my professor told me for this rectangle maker project thing that accessing the instance variables directly was bad and that I should use the accessor method instead. Why is that? Is it just convention? For example:</p>
  
  <pre><code>Rectangle rectangle = new Rectangle(1, 2, 3, 4);
  
  int tallness = rectangle.height; //"bad"
  
  int tallness = rectangle.getHeight(); //"good"
  </code></pre>
  
  <p>Both of those are valid and do the exact same thing, to my understanding. The only difference is that the former feels quicker.</p>
  
  <p>Furthermore, why does accessor come up as misspelled on this site's spellchecker? (Or maybe Chrome's spellchecker) </p>