title: Problems with recognizing variables and methods from same package
body: <p>I understand how to use and import outside packages, but I've never packaged my own classes before. I read the <a href="http://docs.oracle.com/javase/tutorial/java/package/packages.html" rel="nofollow noreferrer">Oracle Tutorial on Creating a Package</a>, and looked at <a href="https://stackoverflow.com/questions/215497/in-java-whats-the-difference-between-public-default-protected-and-private/215505#215505">In Java, what's the difference between public, default, protected and private</a> in addition to several sites/SO threads on packages.  For the life of me, I can't figure out why this extraordinary simple example doesn't work:</p>
  
  <pre><code>package PTest;
  
  public class A
  {
      protected final int SIZE = 10; 
  
      public void printSize()
      {
          System.out.println(SIZE);
      }
  }
  
  package PTest;
  
  public class B
  {
      public static void main(String[] args)
      {
          System.out.println(SIZE);
          hello();
      }
  }
  </code></pre>
  
  <p>I used eclipse's autopackaging feature, so I assume that the actual packing is correct.  Here's an image to show that they are indeed packaged correctly:
  <img src="https://i.stack.imgur.com/Z7rf7.png" alt="enter image description here"></p>
  
  <p>As you can see, neither the <code>protected SIZE</code> or the <code>public hello()</code> are recognized.  I've tried this outside of eclipse, also to no avail.  Any help would be greatly appreciated.</p>