From e7c17b91d403572329a87dc62d1490badd2dcbcf Mon Sep 17 00:00:00 2001 From: geraldy1st Date: Wed, 25 Oct 2023 11:32:59 -0400 Subject: [PATCH 1/3] add fixes to HelloBugs.java for Issues 1 & 2 --- HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java b/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java index b1b923b..7bc70ac 100644 --- a/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java +++ b/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java @@ -1,11 +1,11 @@ package com.openclassrooms; -public clas HelloBugs { +public class HelloBugs { - public static void main(String{}args) { + public static void main(String[]args) { - for(i=0;i>=0;i++) { - System.out.println("Hello buggy code!"): + for ( int i=0 ;i<5; i++) { + System.out.println("Hello buggy code! " + "iteration: " + i ); } } From 6a85b9b1237c5047f53fc3c73ca5e6d40753215b Mon Sep 17 00:00:00 2001 From: geraldy1st Date: Wed, 25 Oct 2023 11:36:12 -0400 Subject: [PATCH 2/3] add it all --- .classpath | 6 ++++++ .gitignore | 1 + .project | 17 +++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 .classpath create mode 100644 .gitignore create mode 100644 .project diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..908a526 --- /dev/null +++ b/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae3c172 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bin/ diff --git a/.project b/.project new file mode 100644 index 0000000..24eff83 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + HelloBugs + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + From c6c7d4e78feef94d1b4db3fe1633c48242c2bf8b Mon Sep 17 00:00:00 2001 From: geraldy1st Date: Wed, 25 Oct 2023 12:09:31 -0400 Subject: [PATCH 3/3] loop fixed --- HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java b/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java index 7bc70ac..3db3c1a 100644 --- a/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java +++ b/HelloBugs/HelloBugs/com/openclassrooms/HelloBugs.java @@ -4,7 +4,7 @@ public class HelloBugs { public static void main(String[]args) { - for ( int i=0 ;i<5; i++) { + for ( int i=0 ;i<=4; i++) { System.out.println("Hello buggy code! " + "iteration: " + i ); }