Question:
Can someone inform me of how to fix this? I keep getting the same error, saying “Duplicate in local variable (“Days”, “Hours”, and “Minutes”)”, but I don’t know how to fix it in a way that’d work.
Repl link:
https://replit.com/@gosst0781/M4HW2#M4HW2.java
if (seconds >= DAY);
set days = seconds / DAY;
if (seconds >= HOUR);
set hours = seconds / HOUR;
if (seconds >= MINUTE);
set minutes = seconds / MINUTE;
set SECOND = seconds % MINUTE;
affected code in question: ^