diff --git a/.idea/misc.xml b/.idea/misc.xml index cf9abe6..cbbff6a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index 931badb..b68a01e 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ HINT: CR Computer Science Discord groups are a great way to play this game remot **After 5 rounds, modify this README.md with a paragraph describing your attempt to stump your partner and the steps your partner took to identify and correct the error or the steps you think they should have used if they didn't solve the problem.** +- I have responded to two classmates posts on the student lounge discussion. I corrected two sets of code. My method was to simply read the code and look for errors. After finding codes by just reading it I entered the code into intellij and ran the code to see if there were any additional errors. The errors I put in my code included, system not being capitalized, a missing ), a missing ;, removing public from "public static void", and removing a period between System and out. At this point in time, no one had responded to my post to correct my code. --- ## Part 2: Date Display Program diff --git a/src/Date.java b/src/Date.java new file mode 100644 index 0000000..7e5ac27 --- /dev/null +++ b/src/Date.java @@ -0,0 +1,15 @@ +public class Date { + public static void main(String[] args) { + System.out.println("Today's date is: "); + String day = "Friday, "; + String month = "January "; + int date = 26 ; + int year = 2024; + + System.out.println(day + month + date + ", " + year); + // european format + System.out.println(day + date + " " + month + year); + + } + +} diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index dffc096..193f69f 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -1,6 +1,12 @@ public class StumpTheChump { // Initially working program. - public static void main(String[] args) { + public static void main(String[] args) { + System.out.println("Hi Chump, can you be stumped?"); + int x = 15; + int y = 30; + System.out.println(x * y); + } + }