diff options
Diffstat (limited to 'src/Q6/WeekDay.java')
| -rw-r--r-- | src/Q6/WeekDay.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Q6/WeekDay.java b/src/Q6/WeekDay.java index db77c17..7ef1082 100644 --- a/src/Q6/WeekDay.java +++ b/src/Q6/WeekDay.java @@ -21,6 +21,7 @@ public class WeekDay { * @param day the day of the month * @param month the month of the year * @param year the year + * @return the name of the day of the week. (Sunday to Saturday) */ public String getWeekDay(int day, int month, int year) { this.ensureValidDate(year, month, day); @@ -53,7 +54,10 @@ public class WeekDay { throw new IllegalArgumentException(); } - /** The entry point to the console application. */ + /** + * The entry point to the console application. + * @param args the argument vector given to the program. + * */ public static void main(String[] args) { Scanner in = new Scanner(System.in); |
