Code example for Formatter

Methods: formatout

0
			System.exit(1);
		} 
	} 
	public void record(String stuff){
		try { 
			tFile.format("%s\n", stuff);
		} 
		catch(FormatterClosedException fce) {
			System.err.printf("Error printing to file %s\n", tFile.out().toString());
			return; 
		} 
	} 
	 
	public void closeFile() { 
		if (tFile != null ) tFile.close();
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java