From a2c6009b70c9847e45776a88359f67b0517c2b87 Mon Sep 17 00:00:00 2001 From: TiagoRG <35657250+TiagoRG@users.noreply.github.com> Date: Tue, 21 Mar 2023 09:54:14 +0000 Subject: [PATCH] [POO] aula05 DateYMD update --- 1ano/2semestre/poo/src/aula05/DateYMD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;