import java.util.Scanner; public class Year { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("hello! please enter current day"); String day = scanner.nextLine(); System.out.println("hello! please enter a valid day"); String year = scanner.nextLine(); System.out.println("hello! please enter the correct month"); String month = scanner.nextLine(); System.out.println("date today :" + year + "" + "+ year " + "+ month " + "+ day " ); } }
简单的时间查询
最新推荐文章于 2024-08-18 21:36:31 发布