From c0746591af87d165797315374c2f651322f680d3 Mon Sep 17 00:00:00 2001 From: senuri_s Date: Sun, 27 Oct 2019 14:07:48 -0700 Subject: [PATCH 1/2] Calculate sum of two numbers --- .idea/.gitignore | 3 +++ .idea/hello-world-java.iml | 9 +++++++++ .idea/misc.xml | 32 ++++++++++++++++++++++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ HelloWorld.java | 5 +++++ hello world | 0 src | 0 8 files changed, 63 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/hello-world-java.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 hello world create mode 100644 src diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..0e40fe8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ + +# Default ignored files +/workspace.xml \ No newline at end of file diff --git a/.idea/hello-world-java.iml b/.idea/hello-world-java.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/hello-world-java.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..17d0239 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,32 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3b4e245 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/HelloWorld.java b/HelloWorld.java index 63eb2cb..8cf9dcf 100644 --- a/HelloWorld.java +++ b/HelloWorld.java @@ -35,5 +35,10 @@ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); + int x =5; + int y = 9; + int z = x+y; + + System.out.println("5+9 = "+ z); } } \ No newline at end of file diff --git a/hello world b/hello world new file mode 100644 index 0000000..e69de29 diff --git a/src b/src new file mode 100644 index 0000000..e69de29 From 64f2d519533bcf63e43bcba1ad9b1ac64a7bd493 Mon Sep 17 00:00:00 2001 From: senuri_s Date: Sun, 27 Oct 2019 14:13:31 -0700 Subject: [PATCH 2/2] Add description --- HelloWorld.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/HelloWorld.java b/HelloWorld.java index 8cf9dcf..9602f36 100644 --- a/HelloWorld.java +++ b/HelloWorld.java @@ -35,10 +35,7 @@ public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); - int x =5; - int y = 9; - int z = x+y; + System.out.println("System.out.println use to print a text on console"); - System.out.println("5+9 = "+ z); } } \ No newline at end of file