From b0ef61d38fdd1867b5a1666353db694e013974b3 Mon Sep 17 00:00:00 2001 From: AlexeiIachkov Date: Sat, 27 Jan 2024 16:56:13 -0800 Subject: [PATCH] Completed Java-lab-002 --- .idea/misc.xml | 2 +- src/Date.java | 22 ++++++++++++++++++++++ src/StumpTheChump.java | 26 ++++++++++++++++++++++++-- 3 files changed, 47 insertions(+), 3 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/src/Date.java b/src/Date.java new file mode 100644 index 0000000..04bcb0a --- /dev/null +++ b/src/Date.java @@ -0,0 +1,22 @@ +/** + * @author Trevor Hartman + * @author Alexei Iachkov + * @date 1-27-24 + * @version Lost count finally got it though xD + */ +public class Date { + static String day = "Saturday"; + static String month = "January"; + static int monthnumerical = 01; + static int year = 2024; + static int currentdate = 27; + + public static void main(String[] args) { + + System.out.println("Welcome to the seventh dimension Neo!"); + System.out.println("Enjoy your stay!"); + + System.out.println("American Date Format: " + day + ", " + month + " " + currentdate + ", " + year); + System.out.println("European Date Format: " + day + ", " + currentdate + "/" + monthnumerical + "/"+ year ); + } +} diff --git a/src/StumpTheChump.java b/src/StumpTheChump.java index dffc096..7ce60c5 100644 --- a/src/StumpTheChump.java +++ b/src/StumpTheChump.java @@ -1,6 +1,28 @@ +/** + * @author Alexei Iachkov + * @date 1-27-24 + * @version 1 + */ + public class StumpTheChump { // Initially working program. - public static void main(String[] args) { - System.out.println("Hi Chump, can you be stumped?"); + static String playerone = "Aksel"; + static String playertwo = "Alexei"; + + public static void main(String [] args) { + + System.out.println(playerone + " VS " + playertwo); + System.out.println("The 5 Point Total Winner is... playertwo!"); } } +//playerone Turn 1, removed semicolon line 10, playertwo FIXED error without compiling +//playertwo (2 points total) +//playertwo Turn 2, added a bracket thingy line 12, playerone FIXED error without compiling +//playerone (2 point stotal) +//playerone Turn 3, lower-cased System and upper-cased println line 14, playertwo FIXED error without compiling but didn't notice the Println change +//playertwo (3 points total) +//playertwo Turn 4, removed static line 12, playerone easily FIXED error without compiling +//playerone (4 points total) +//playerone Turn 5, removed brackets line 12, playertwo fixed error without compiling +//playertwo (5 points total) +