From 0e4361b3e787872bb35c981e00293d6c80ab8f16 Mon Sep 17 00:00:00 2001 From: Nicola Iacovelli Date: Fri, 4 Oct 2019 10:55:41 +0200 Subject: [PATCH 1/3] 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/3] 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 From e376aac3e5db1b2db1d5b35a378b7d4e2cd5bfd4 Mon Sep 17 00:00:00 2001 From: Nicola Iacovelli Date: Fri, 4 Oct 2019 11:28:38 +0200 Subject: [PATCH 3/3] Added 8-digits stye hello world --- kotlin/eight_digit_hello_world.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 kotlin/eight_digit_hello_world.kt diff --git a/kotlin/eight_digit_hello_world.kt b/kotlin/eight_digit_hello_world.kt new file mode 100644 index 0000000..495ceb2 --- /dev/null +++ b/kotlin/eight_digit_hello_world.kt @@ -0,0 +1,14 @@ + +val firstLine : String = """ _ _ _ _ _ """ +val secondLine : String = """|_| |_ | | | | \ / | | |_| | | \ | |""" +val thirdLine : String = """| | |_ |_ |_ |_| \/\/ |_| | \ |_ |_/ o o""" + +fun main(args: Array) { + printHelloWorld() +} + +fun printHelloWorld() { + println(firstLine) + println(secondLine) + println(thirdLine) +} \ No newline at end of file