diff --git a/.idea/misc.xml b/.idea/misc.xml index cf9abe6..e2aa004 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..c48b8c8 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 played this game with my girlfriend so all she did was delete random letters from the original stump the chump code and asked if I could see the problem, and amazingly, I figured everything out and got it working again I just had a problem with the 4th line because I didn't know that it was println instead of printin --- ## Part 2: Date Display Program diff --git a/src/Date.java b/src/Date.java new file mode 100644 index 0000000..0e3e14e --- /dev/null +++ b/src/Date.java @@ -0,0 +1,23 @@ +public class Date { + + public static void main(String[] args) { + String day, month; + int date, year; + + day = "Saturday"; + date = 27; + month = "January"; + year = 2024; + + System.out.println("Day: " + day); + System.out.println("Date: " + date); + System.out.println("Month: " + month); + System.out.println("Year: " + year); + + System.out.println("\nStandard American Format:"); + System.out.println(day + ", " + month + " " + date + ", " + year); + + System.out.println("\nEuropean Format:"); + System.out.println(date + " " + month + " " + year); + } +} diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index dffc096..8061104 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -3,4 +3,4 @@ public class StumpTheChump { public static void main(String[] args) { System.out.println("Hi Chump, can you be stumped?"); } -} +} \ No newline at end of file