title: How Do I Access One Variable From Another Class?
body: <p>I am not by my programming computer right now, so I can't post the code. I've been taking online lessons that I bought from Udemy so I'm still learning a lot.</p>
  
  <p>I've looked at a decent number of posts, but the code they posts seem so long and complicated that it gets confusing. I have tried using a static variable, but <strong><em>the data needs to be changeable</em></strong>.</p>
  
  <p><strong>This is in android studios.
  How do I access the data from one class in another class?</strong></p>
  
  <p>Class One:
  //Class name is "ClassOne"</p>
  
  <p>//Integer is an int named <strong>myNum</strong> and is <strong>equal</strong> to <strong>1</strong>.</p>
  
  <p>Class Two:
  //Class name is "ClassTwo"</p>
  
  <p>//I want my new int, <strong>myNewInt</strong>, to be <strong>equal</strong> to <strong>myNum</strong>.</p>