I was thinking on STDIN. System.in is standard stream for STDIN in Java. For general propose, keyboard is used to provide input to STDIN but if the input is large contains too many parameters, then typing every parameter using keyboard is quite difficult and impossible too.
What can be any alternative for the same scenario?
Usually you would have a number of canned inputs as files. So you would run
Then you would compare your output-N.txt with the one generated by the program to see if its close enough.
This will pass all the contents of the file to System.in and write all the output to System.out and System.err to the output file.