From 0e4361b3e787872bb35c981e00293d6c80ab8f16 Mon Sep 17 00:00:00 2001 From: Nicola Iacovelli Date: Fri, 4 Oct 2019 10:55:41 +0200 Subject: [PATCH 1/2] Added hello world in 8-digits style --- Java/EightDigitHelloWorld.java | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Java/EightDigitHelloWorld.java diff --git a/Java/EightDigitHelloWorld.java b/Java/EightDigitHelloWorld.java new file mode 100644 index 0000000..e69de29 From 179b5130dc741f52c1f0a0acc8f6ae66f741233d Mon Sep 17 00:00:00 2001 From: Nicola Iacovelli Date: Fri, 4 Oct 2019 11:00:36 +0200 Subject: [PATCH 2/2] Added 8-digits style hello world --- Java/EightDigitHelloWorld.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Java/EightDigitHelloWorld.java b/Java/EightDigitHelloWorld.java index e69de29..241c5d2 100644 --- a/Java/EightDigitHelloWorld.java +++ b/Java/EightDigitHelloWorld.java @@ -0,0 +1,19 @@ + + +public class EightDigitHelloWorld { + + private static final String firstLine = " _ _ _ _ _ "; + private static final String secondLine = "|_| |_ | | | | \\ / | | |_| | | \\ | |"; + private static final String thirdLine = "| | |_ |_ |_ |_| \\/\\/ |_| | \\ |_ |_/ o o"; + + public static void main(String args[]) { + printHelloWorld(); + } + + private static void printHelloWorld() { + System.out.println(firstLine); + System.out.println(secondLine); + System.out.println(thirdLine); + } + +} \ No newline at end of file