Spawning instances of non-static classes in Java
<p>I have the following classes:</p>

<pre><code>public class MyClass {

   public static void callFromThirdPartyApp(String allInput){
      HideInput hi = new HideInput();
      hi.workWithInput(allInput);
   }
}

public class HideInput {
   public void workWithInput{String allInp)

   work with allInp...
}
</code></pre>

<p>What I would like to achieve is that whenever the <code>callFromThirdPartyApp</code> method is called it will take the input, initiate a non-static class, pass all input to the class and let it work with it. </p>

<p>The challenge is that <code>callFromThirdPartyApp</code> can be called simultaneously. Will this code kick off different instances of the <code>HideInput</code> class that will make sure the <code>allInp</code> cannot be touched by other instances of the class?</p>

<p>EDIT1: indentation 
EDIT2: sorry I meant non-static, instead of private
EDIT3: amended title to non-static (from private)</p>
