Update Main.java

long for seconds
output in HH:MM:SS format