参考代码:
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); //从什么到什么一共经过了几天 System.out.println(LocalDate.of(sc.nextInt(), sc.nextInt(), sc.nextInt()).until(LocalDate.of(sc.nextInt(), sc.nextInt(), sc.nextInt()), ChronoUnit.DAYS)); } }
0.0分
1 人评分