I need a method to write to a BufferedReader input from another class.
In class A I use BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
and str = stdin.readLine();
to get input from the user, which then takes this input, formats it and prints it out with System.out.println
.
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.
Is there a way to do that?