diff --git a/1ano/2semestre/poo/src/aula05/DateYMD.java b/1ano/2semestre/poo/src/aula05/DateYMD.java index 13c7f84..74392d0 100644 --- a/1ano/2semestre/poo/src/aula05/DateYMD.java +++ b/1ano/2semestre/poo/src/aula05/DateYMD.java @@ -71,7 +71,7 @@ public class DateYMD { } public String toString() { - return String.format("%04d-%02d-%02d", year, month, day); + return String.format("%04d-%02d-%02d", this.year, this.month, this.day); } static boolean validMonth(int month) { return month >= 1 && month <= 12;