Code example for PrintStream

Methods: printf

0
	 * @param fmt 
	 * @param args 
	 */ 
	static void passThrough(PrintStream out, String fmt, Object ... args) {
		line(); 
		out.printf(fmt, args);
	} 
	 
	/** Show iterating through the varargs list. 
	 * @param out 
	 * @param args 
	 */ 
	static void process(PrintStream out, Object ... args) {
		line(); 
		int i = 0;
		for (Object o : args){
			out.print("Argument " + ++i + " is " + o + "; ");
		} 
		System.out.println();
	}