Skip to content

Instantly share code, notes, and snippets.

Created Jan 28, 2012
What would you like to do?
String template = Exercise 1: Negate a tree (5%%)\n\n" //usually /n's are at the end of the line
+"original tree: \n%s\n"
+"original tree negated: \n%s\n"
+"original tree negated twice (same as original): \n%s\n"
+"empty tree: \n%s\n";
System.out.printf(template, TreeOps.toString(x), Ex2.negateAll(x), Ex2.negateAll(Ex2.negateAll(x)), Ex2.negateAll(new Tree()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment