From 5c8618878e24f7f9439787363a0fbd6480d05969 Mon Sep 17 00:00:00 2001 From: Juan Fernando Date: Thu, 25 Oct 2018 16:03:59 -0500 Subject: [PATCH 1/3] Scala hello world. --- HelloWorld/hello_world.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 HelloWorld/hello_world.scala diff --git a/HelloWorld/hello_world.scala b/HelloWorld/hello_world.scala new file mode 100644 index 00000000..0d5c1a57 --- /dev/null +++ b/HelloWorld/hello_world.scala @@ -0,0 +1,9 @@ +//Author: juanferrgiraldo + +object hello { + def main(args: Array[String]) { + print("Please enter ultrasupreme hacker name: ") + val name = Console.readLine + println("Congratulations, " + name + " you have hacked satisfactorily, happy Hacktoberfest!") + } +} \ No newline at end of file From 2c482a9a2d3158d9e12b8d9d0b5df7c1143e66c7 Mon Sep 17 00:00:00 2001 From: Juan Fernando Date: Thu, 25 Oct 2018 16:26:50 -0500 Subject: [PATCH 2/3] Fixed issue error. --- HelloWorld/hello_world.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HelloWorld/hello_world.scala b/HelloWorld/hello_world.scala index 0d5c1a57..fa68254b 100644 --- a/HelloWorld/hello_world.scala +++ b/HelloWorld/hello_world.scala @@ -2,8 +2,8 @@ object hello { def main(args: Array[String]) { - print("Please enter ultrasupreme hacker name: ") + print("Enter your name : ") val name = Console.readLine - println("Congratulations, " + name + " you have hacked satisfactorily, happy Hacktoberfest!") + println("Hello" + name + "!") } } \ No newline at end of file From ce34fee1d8059614f2002ea0a994ff670f8416bb Mon Sep 17 00:00:00 2001 From: Juan Fernando Date: Thu, 25 Oct 2018 17:30:03 -0500 Subject: [PATCH 3/3] Scala hello world fixed. --- HelloWorld/hello_world.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWorld/hello_world.scala b/HelloWorld/hello_world.scala index fa68254b..378100a4 100644 --- a/HelloWorld/hello_world.scala +++ b/HelloWorld/hello_world.scala @@ -4,6 +4,6 @@ object hello { def main(args: Array[String]) { print("Enter your name : ") val name = Console.readLine - println("Hello" + name + "!") + println("Hello " + name + "!") } } \ No newline at end of file