add print method to the Dict and List classes

This commit is contained in:
Ben Fry
2014-07-30 21:22:10 -04:00
parent 76dedb1d5b
commit 2943469482
6 changed files with 37 additions and 15 deletions
+5 -6
View File
@@ -744,12 +744,11 @@ public class FloatDict {
}
// /**
// * Write tab-delimited entries out to the console.
// */
// public void print() {
// write(new PrintWriter(System.out));
// }
public void print() {
for (int i = 0; i < size(); i++) {
System.out.println(keys[i] + " = " + values[i]);
}
}
/**