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..cd6a151 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,9 @@ 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.** +The first thing I did was change the letter casing in the class name. The second thing I did was delete the opening parenthesis in front of “main”. +The third thing I did was make a part of the code after the closing bracket of “public static void main (String[] args) {}”. The fourth and fifth thing I did was delete the semicolon from “int x = 50;” and I also capitalized the “I” in “int”. I tried to make the mistakes not too obvious but some of them you can find right from the start. I didn’t have a partner but I posted my code in the Student Lounge forum. + --- ## Part 2: Date Display Program @@ -51,4 +54,4 @@ Just as you did in the first lab (Reference the Lab video in your Week 1 module) 4. Then issue a Pull request to my instructor repo 5. **Make sure to COPY the Pull request URL and submit it for the lab/assignment in Canvas.** -Enjoy the learning process! \ No newline at end of file +Enjoy the learning process! diff --git a/src/Date.java b/src/Date.java new file mode 100644 index 0000000..6753571 --- /dev/null +++ b/src/Date.java @@ -0,0 +1,17 @@ +public class Date { + public static void main (String[] args) { + + System.out.println("Hello World"); + + int day = 27; + int month = 1; + int year = 24; + String date = "Saturday, January 27, 2024"; + + System.out.println(date); + System.out.println(month + "/" + day + "/" + year); + System.out.println(day + "/" + month + "/" + year); + + + } +} diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index dffc096..23ecca1 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -1,6 +1,28 @@ +/** + * + * @author Trevor Hartman + * @author Andrew Escarcega + * + * @since 1/27/24 + * + */ 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?"); } + + +/* public class StumpThechump { + // Initially working program. + public static void main String[] args) { + System.out.println("Hi Chump, can you be stumped?"); + } + Int x = 50 + int y = 100; + System.out.println(x / y); + + System.out.println("The total is " + x + " dollars"); +*/ + }