diff options
Diffstat (limited to 'docs/teaching/exercises/support/Log.java')
-rw-r--r-- | docs/teaching/exercises/support/Log.java | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/docs/teaching/exercises/support/Log.java b/docs/teaching/exercises/support/Log.java index 8e258d753..29d39151d 100644 --- a/docs/teaching/exercises/support/Log.java +++ b/docs/teaching/exercises/support/Log.java @@ -19,24 +19,10 @@ import java.util.ArrayList; public class Log { static List data = new ArrayList(); - public static void traceObject(Object o) { - throw new UnsupportedOperationException(); - } - - public static void log(String s) { + public static void write(String s) { data.add(s); } -// public static void logClassName(Class _class) { -// String name = _class.getName(); -// int dot = name.lastIndexOf('.'); -// if (dot == -1) { -// log(name); -// } else { -// log(name.substring(dot+1, name.length())); -// } -// } - public static List getData() { return data; } |