From 263711f058b6f189005ba6c3afdc9e449d870701 Mon Sep 17 00:00:00 2001 From: Kevin Gonzalez <19812642+typekev@users.noreply.github.com> Date: Mon, 1 Jul 2019 18:25:41 +0200 Subject: [PATCH 1/2] Fix typo, HelloWorld should be VariableDeclaration --- hello-world/src/VariableDeclaration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hello-world/src/VariableDeclaration.java b/hello-world/src/VariableDeclaration.java index 8726d79..20adf83 100644 --- a/hello-world/src/VariableDeclaration.java +++ b/hello-world/src/VariableDeclaration.java @@ -52,5 +52,5 @@ public static void main(String[] args) { /** * The easiest way to run this code is by opening it in an IDE, such as IntelliJ - * IDEA, and selecting run 'HelloWorld' from the interface. - */ \ No newline at end of file + * IDEA, and selecting run 'VariableDeclaration' from the interface. + */ From 40782c6497387dfa5a09fa61e86fa0beccafb953 Mon Sep 17 00:00:00 2001 From: Kevin Gonzalez Date: Mon, 1 Jul 2019 18:29:35 +0200 Subject: [PATCH 2/2] Add documentation regarding passing information to a method --- hello-world/src/VariableDeclaration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello-world/src/VariableDeclaration.java b/hello-world/src/VariableDeclaration.java index 20adf83..97f132c 100644 --- a/hello-world/src/VariableDeclaration.java +++ b/hello-world/src/VariableDeclaration.java @@ -43,8 +43,8 @@ public static void main(String[] args) { /** * We pass helloWorldString as an argument to the println method to print "Hello World" to our terminal. * See https://github.com/floatsoft/java-references/blob/bubble-sort/hello-world/src/HelloWorld.java#L48-L62 + * See https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html */ - System.out.println(helloWorldString); }