Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**

In my modified code, I implemented 5 errors which were meant to stump my classmates. The first error that I made was capitalizing the word "static" in the code. The next error was making "System.in.println" instead of "System.out.println". For one line, I made two errors by identifying y as a double even though the number was a regular whole number, and I also did not end the line with a semicolon. Last, I did not capitalize "system" at the end of the code. I posted my code in the student lounge discussion in hopes of some replies, but did not receive any at this point. When analyzing my code, I would look at the basics like capitalization and punctuation to make sure they are accurate. Then, if I cannot identify anymore errors, I would run the code and see what else needs to be fixed. I completed a classmate's code and was able to identify all 5 errors.
---

## Part 2: Date Display Program
Expand Down
24 changes: 24 additions & 0 deletions src/Date.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
public class Date {
// Initially working program.
public static void main(String[] args) {
String day, date, month, year;

day = "Friday";
date = "27";
month = "January";
year = "2024";

System.out.println("Date.java");
System.out.println("Day: " + day);
System.out.println("Date: " + date);
System.out.println("Month: " + month);
System.out.println("Year: " + year);

System.out.println("American Format:");
System.out.println(day + ", " + month + " " + date + ", " + year);

System.out.println("European Format:");
System.out.println(date + " " + month + " " + year);

}
}