title: Assign a String content to a new String in Java from parameter
body: <p>Having this method  </p>
  
  <pre><code>void doSomething(String input)
  {
     //trick for create new object instead of reference assignment
     String workStr= "" + input; 
  
     //work with workStr
  }
  </code></pre>
  
  <p>Which is the java way for doing that?</p>
  
  <p><strong>Edit</strong></p>
  
  <ul>
  <li>if I use input variable as input=something then Netbeans warns about assigning a value
  to a method parameter </li>
  <li>If I create it with new String(input) it warns about using String constructor</li>
  </ul>
  
  <p>Perhaps the solution is not to assign nothing to input, or just ignore the warning..</p>