Code example for Formatter

Methods: format

0
		} 
	} 
 
	void Output(Formatter fmt) throws IOException
	{ 
		fmt.format("%3d: T%-3d C%-3d   ",di.arrival,di.tableid,di.cookid);
		 
		 
		fmt.format("%3d   ", di.seated);
		//fw.write(di.seated+"   "); 
		 
		fmt.format("%3d ", di.burtime);
		//fw.write(di.burtime+" "); 
		 
		if(di.friestime==-1) fmt.format(" -  ");
		else fmt.format("%3d ",di.friestime);
		 
		if(di.coketime==-1) fmt.format(" -    ");
		else fmt.format("%3d   ",di.coketime);
		 
		fmt.format("%3d %3d\n",di.served,di.leave);
		 
	} 
}