I wanted to make a comparison between the date contained in the hour1 object with the system date, how can I do it?
import java.text.SimpleDateFormat;
import java.util.Date;
public class MainTarefas {
public static void main(String[] args) {
Date horaMarcada = new Date(1,1,1,1,1);
Date horaAtual = new Date();
System.out.println(horaMarcada.compareTo(horaAtual));
}
}