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
1 change: 0 additions & 1 deletion .idea/misc.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

Binary file added Java-Assignment-004.zip
Binary file not shown.
31 changes: 31 additions & 0 deletions src/.gitkeep
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
public class RedesignDate {

// Part 1

public static String printAmerican(String day, int date, String month, int year) {
String aTemplate = "%s, %s %dth, %d";
System.out.printf(aTemplate, day, month, date, year);
return "";

}

public static String printEuropean(String day, int date, int month, int year) {
String bTemplate = "%s, %02d.%02d.%d";
System.out.printf(bTemplate, day, date, month, year);
return "";

}

public static void twoLine() {
System.out.println("\n");

}

public static void main(String[] args) {
printAmerican("Wednesday", 7, "February", 2024);
twoLine();
printEuropean("Wednesday", 07, 02, 2024);


}

}