From a04662898067adb3c848965e3190f073a2985efe Mon Sep 17 00:00:00 2001 From: Rigel Date: Fri, 26 Jan 2024 19:11:01 -0800 Subject: [PATCH] Lab-002 Rigel Luciani --- .idea/misc.xml | 2 +- README.md | 9 ++++++++- src/Date.java | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/Date.java 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..81f46aa 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,11 @@ 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! + +## Stump the Chump + +I modified Ricardo's code in 5 different areas, and he quickly used the IDE to correct the errors. +He did the same to my code, and then the IDE made short work of them. I enjoy how the IDE will debug your code +in a way that require user input to make the actual change. I believe that this class provides the tools and the push +to learn how to write programs. I am looking forward to learning other languages, once I have a grasp on Java. diff --git a/src/Date.java b/src/Date.java new file mode 100644 index 0000000..108253c --- /dev/null +++ b/src/Date.java @@ -0,0 +1,18 @@ +public class Date { + static String hello = "Hello World!"; + static String day = "Thursday"; + static int date = 25; + static String month = "January"; + + static int monthEU = 1; + static int year = 2024; + + + public static void main(String[] args) { + + + System.out.println(hello); + System.out.println("American:" + day + ", " + month + " " + date + ", " + year); + System.out.println("European:" + year + "-" + monthEU + "-" + date); + } +} \ No newline at end of file