title: How can I pull variables from one java file to another?
body: <p>I'm at very early stages of learning java.</p>
  
  <p>I currently have one file which has 900 lines of code, which is not good.</p>
  
  <p>I would like to separate my Java file into separate java files which I could "link" 
  together in some way.</p>
  
  <p>I used to work a lot with CSS, and there it was insanely easy to pull some stylesheets in with the @import.</p>
  
  <p>Would there be a way to "copy" all variables from a file to a different one, the @import way? If I had my array "p" defined in the separate file, could I just @import this file into my main file in a way where I could just try to print p and it would do it?</p>
  
  <p>Thanks a lot in advance!</p>