From 6d016007d81b10341525b0891d50f883e0bbc203 Mon Sep 17 00:00:00 2001 From: Sam Warner Date: Thu, 16 Nov 2017 08:53:03 +0000 Subject: [PATCH 1/2] Diamond: add starter implementation. --- exercises/diamond/src/main/java/.keep | 0 exercises/diamond/src/main/java/DiamondPrinter.java | 7 +++++++ 2 files changed, 7 insertions(+) delete mode 100644 exercises/diamond/src/main/java/.keep create mode 100644 exercises/diamond/src/main/java/DiamondPrinter.java diff --git a/exercises/diamond/src/main/java/.keep b/exercises/diamond/src/main/java/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/exercises/diamond/src/main/java/DiamondPrinter.java b/exercises/diamond/src/main/java/DiamondPrinter.java new file mode 100644 index 000000000..c8bd86369 --- /dev/null +++ b/exercises/diamond/src/main/java/DiamondPrinter.java @@ -0,0 +1,7 @@ +class DiamondPrinter { + + List printToList(char a) { + throw new UnsupportedOperationException("Delete this statement and write your own implementation."); + } + +} From 45630468ec2e00d9720718846d96c7fda9507ca7 Mon Sep 17 00:00:00 2001 From: Sam Warner Date: Thu, 16 Nov 2017 09:03:44 +0000 Subject: [PATCH 2/2] Add import statement --- exercises/diamond/src/main/java/DiamondPrinter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exercises/diamond/src/main/java/DiamondPrinter.java b/exercises/diamond/src/main/java/DiamondPrinter.java index c8bd86369..c5d0f98d4 100644 --- a/exercises/diamond/src/main/java/DiamondPrinter.java +++ b/exercises/diamond/src/main/java/DiamondPrinter.java @@ -1,3 +1,5 @@ +import java.util.List; + class DiamondPrinter { List printToList(char a) {