title: Change boolean Values?
body: <p>I have a question about boolean values in Java. Let's say I have a program like this:</p>
  
  <pre><code>boolean test = false;
  ...
  foo(test)
  foo2(test)
  
  foo(Boolean test){
    test = true;
  }
  foo2(Boolean test){
    if(test)
     //Doesn't go in here
  }
  </code></pre>
  
  <p>I noticed that in foo2, the boolean test does not change and thereby doesn't go into the if statement. How would I go about changing it then? I looked into Boolean values but I couldn't find a function that would "set" test from true to false. If anyone could help me out that would be great. </p>