title: How do I pass a Boolean value between classes?
body: <p>I am completely blanking on what i believe to be simple Java syntax.</p>
  
  <p>Here is an example of my first class:</p>
  
  <pre><code>public ExampleClass {
      public boolean exampleBool = false;
  
      if(SomethingImportantHappensOnRuntime) {
          exampleBool = true;
      }
  }  
  </code></pre>
  
  <p>And here's the second class:</p>
  
  <pre><code>public ExampleClass2 {
      if(exampleBool) {
          //do stuff
      }
  }
  </code></pre>
  
  <p><strong>How do I pass exampleBool from ExampleClass to ExampleClass2</strong> so that when something important happens on runtime exampleBool will be set to true and the "if" inside "ExampleClass2" would run?</p>