title: Is it possible to declare arrays in one java file and use them in a different java file if they are all in the same package
body: <p>so how would you use that with a completely different java file but in the same package</p>
  
  <pre><code>public static void main (int[] args)
  {
  int [] HotDog = {18,8,10,0};
  int [] ToastedChicken = {25,8,17,0};
  int [] ToastedSteak = {30,8,22,0};
  int [] ToastedEggT= {20,8,6,6};
  int [] ToastedSteakE={36,8,22,6};
  int [] ChickenRoll = {25,8,17,0};
  int [] SteakRoll = {30,8,22,0};
  int [] EggTomato = {20,8,6,6};
  int [] CheeseTomato = {20,8,6,6};
  int [] steakEgg = {36,8,22,6};`
  </code></pre>
  
  <p>IE here</p>
  
  <pre><code>if (contents ==  "Hot Dog")
  
  {jLabel2.setText(HotDog[2]); }  
  </code></pre>