/** * Title: SysOut * Description: System.out as OutputStream * "hello" the hard way. * @author hollingd@cs.rpi.edu */ import java.io.*; public class SysOut{ public static void main(String[] args) throws Exception { OutputStream stdout = System.out; stdout.write(104); // h stdout.write(101); // e stdout.write(108); // l stdout.write(108); // l stdout.write(111); // o stdout.write(10); // \n stdout.flush(); } }