From 42546ded854f4124c2e306edd2507ddbcdf87956 Mon Sep 17 00:00:00 2001 From: JaneLiu Date: Thu, 25 Oct 2018 22:41:17 -0400 Subject: [PATCH 1/2] Added helloworld in Java and Python --- Java/HelloJavaWorld.java | 10 ++++++++++ Python/hello_world.py | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 Java/HelloJavaWorld.java create mode 100644 Python/hello_world.py diff --git a/Java/HelloJavaWorld.java b/Java/HelloJavaWorld.java new file mode 100644 index 0000000..4f873d1 --- /dev/null +++ b/Java/HelloJavaWorld.java @@ -0,0 +1,10 @@ +public class HelloJavaWorld{ + public static void main(String[] args){ + printString("Hello, world!"); + } + + private static void printString(String sentance){ + System.out.println(sentance); + } +} + diff --git a/Python/hello_world.py b/Python/hello_world.py new file mode 100644 index 0000000..6ee13c5 --- /dev/null +++ b/Python/hello_world.py @@ -0,0 +1,4 @@ +def print_hello_world(): + print("Hello, world!") + +print_hello_world() \ No newline at end of file From 4ebdfe88ff8a474083f5764b1c991f03b4e1f7b8 Mon Sep 17 00:00:00 2001 From: JaneLiu Date: Thu, 25 Oct 2018 22:48:25 -0400 Subject: [PATCH 2/2] Added Java and Python --- Python/hello_world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/hello_world.py b/Python/hello_world.py index 6ee13c5..7fd0ded 100644 --- a/Python/hello_world.py +++ b/Python/hello_world.py @@ -1,4 +1,4 @@ def print_hello_world(): print("Hello, world!") -print_hello_world() \ No newline at end of file +print_hello_world()