private void sendInputStringToProcess(Process process){
  if (inputString != null) {
    try (PrintStream ps=new PrintStream(process.getOutputStream())){
      ps.print(inputString);
      ps.print('\n');
    }
   }
}

private void sendInputStringToProcess ( Process process ) { if ( inputString != null ) { try ( PrintStream ps = new PrintStream ( process . getOutputStream ( ) ) ) { ps . print ( inputString ) ; ps . print ( '\n' ) ; } } }
if an input string was specified , stream it to the process standard input .
