title: Java Accessing Variables from a different class in the same Package
body: <p>I am writing a program that would require for me to access one variable from another class. Both classes are in the same Package, but I have no clue on how I would do this.</p>
  <pre><code>public class Check_Out {
  
      int Menu_total_items = 34;
  }
  </code></pre>
  <p>The file name for the first class is 'Inventory_counter.java'</p>
  <p>and the class that needs to read the variable is in 'Check_Out.java'</p>
  <p>The code for this one is:</p>
  <pre><code>public class Check_Out {
  }
  </code></pre>