package class6_1_StreamDecorator; import class6_1_StreamDecorator.caesar.student4.CaesarWriter; import java.io.PrintWriter; import java.io.Writer; public class DecoratorTest { public static void main(String[] args) { Writer writer = new CaesarWriter(new ScrambleWriter( new PrintWriter(System.out)),7); //---- Write code here to cancel out // the encryption ------ //-------------------------- PrintWriter printWriter = new PrintWriter(writer,true); // true to enable auto-flushing printWriter.println("This is fun!"); printWriter.println("This is even more fun!"); printWriter.flush(); // TODO Winter 2016-2017: Use Socket (a TCP client) and ServerSocket (a TCP server) to communicate between machines. } }