package testcode; /** * Test for PrintStream. Uses several variants of print/println TODO also test * the other functions: write, append, printf, format etc */ public class PrintStreamExample { /** * * @param args the arguments of the call. */ static public void main(String[] args) { System.out.print("H"); System.out.print('e'); System.out.print(1); System.out.print(1.0); System.out.print(true); System.out.println(); System.out.println(new char[] { 'b', 'y', 'e' }); } }