title: Package and class scope rules?
body: <p>I am writing a Java program that is divided into packages.
  How do I give permission to class in the scope that is defined in it, and to its sub-scopes.</p>
  
  <p>For example, I have 3 packages app.A, app.A.Sub, app.B. And in packge A I have class GlobalA.<br>
  I want that only package app.A and app.A.Sub will be able to use GlobalA, but app.B cant use it.</p>
  
  <p>How can I do it?</p>