public void write(final String filename){
  try (PrintStream stream=new PrintStream(new File(filename))){
    write(stream);
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
}

public void write ( final String filename ) { try ( PrintStream stream = new PrintStream ( new File ( filename ) ) ) { write ( stream ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } }
writes the gathered data tab - separated into a text file .
