title: Pointer with java and string variable
body: <p>I gave a value (as variable) to a String variable.</p>
  
  <p>The problem is that when I change this value, it doesn't change the other variable : </p>
  
  <p>Code :</p>
  
  <pre><code> String test = "hello";
   String myname = test;
   test = "how are you ?";
  </code></pre>
  
  <p>The output of <strong>myname</strong> is "hello"</p>
  
  <p>I want that the output be "how are you?" the new value of test; how to do it without give the value again like : </p>
  
  <pre><code>myname = test;
  </code></pre>
  
  <p>I don't want to give the value again because I my code I got a lots of variables that got the <strong>test</strong> variable as value, I want to do the shortest way.</p>