title: Storing data from System.out.print(output)
body: <p>First of all, I am sorry if the question was vague or unclear.</p>
  
  <p>I am trying to store System.out.print(output) into sort of like an array.</p>
  
  <p>For example</p>
  
  <p>I have a global variable call <code>name = "Mike"</code>.</p>
  
  <p>the input was <code>str = "Hello";</code></p>
  
  <p><code>System.out.println(str + name);</code></p>
  
  <p>I want to store that output in the somewhere which I don't know.</p>
  
  <p>Then another input <code>str1 = "Bye"</code></p>
  
  <p><code>System.out.println(str1 + name);</code></p>
  
  <p>I want to store this one too.</p>
  
  <p>When I want to view them. 
  The result should be </p>
  
  <pre><code>Hello Mike.
  
  Bye Mike.
  </code></pre>
  
  <p>They are supposed to print at the same time. NOT one by one.</p>
  
  <p>FYI, the store variable cannot be global.The reason to store is because I need an input from the user (at most two input) and when I call view() method it should print out </p>
  
  <pre><code>Hello Mike.
  
  Bye Mike.
  </code></pre>
  
  <p>What should I do?
  Should I use loop?
  If my way of thinking was terrible, sorry in advance.</p>
  
  <p>Can you give me better way?
  Can someone explain to me? </p>
  
  <p>Thanks.</p>