code: public void storeResults() {
  		System.out.println("Processed " + countItems + " items and "
  				+ countProperties + " properties in total.");
  		System.out.println("Storing data ...");
  
  		try (PrintStream out = new PrintStream(new FileOutputStream(
  				"tutorial-results.csv"))) {
  			// Two simple entries for demonstration purposes.
  			// Use your own code when you have more interesting data.
  			out.println("count of items," + countItems);
  			out.println("count of properties," + countProperties);
  		} catch (IOException e) {
  			System.out.println("Oops, I could not write the file: "
  					+ e.toString());
  		}
  
  		System.out.println("... data stored.");
  
  	}
docs: Stores the processing results in a file. CSV (comma separated values) is
  a simple format that makes sense for such tasks. It can be imported
  easily into spreadsheet tools to generate diagrams from the data.