Compare dates in Java using LocalDate ... System.out.println(date1 + " is equal to " + date2); } // compareTo() method int diff = date1.
確定! 回上一頁