title: Write to BufferedReader from another class
body: <p>I need a method to write to a BufferedReader input from another class.</p>
  
  <p>In class A I use <code>BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));</code> and <code>str = stdin.readLine();</code> to get input from the user, which then takes this input, formats it and prints it out with <code>System.out.println</code>.</p>
  
  <p>Now I found out that I want to give some input to class A from class B, so that class A can do it's thing and print it out.</p>
  
  <p>Is there a way to do that?</p>