Saving List of Strings in Java
<p>am having problem in Saving some data in my Java code. </p>

<p>I have like three different methods which do some respective tasks. Am calling these methods using Hessian from Php client. And am not calling this three methods at a time. Each method will create some arrays(contains strings, int, float), and some time i have to use those arrays which was created my previous methods call in this present method. </p>

<p>Is there any way i can save that Arrays(not in database), may be a List or Array which will not flush the memory unless i say soo..   </p>

<p>Example </p>

<pre><code>public class top{
    Method1(){

    String[]  stringA = {some string data} ;

    }

    Method2(){

       for(string data : stringA){
          I use array of stringA from method1 without calling the whole method1. I need that string value to be save untill i flush it out.    
       }

    }

}
</code></pre>

<p>This is not a complete code.. not even a code. Am just trying to explain the issue.</p>

<p>Any help please.</p>

<p>Thanks.</p>
