摘要: public class Test4 { public static void main(String[] args) { // extracted(); //利用空参构造创建SimpleDateFormat对象,默认格式 Date d1 = new Date(); SimpleDateFormat 阅读全文
posted @ 2022-10-12 21:46 knlf 阅读(19) 评论(0) 推荐(0)
摘要: package shuzu; // Fibonacci 数列为{0,1,1,2,3,5,8,13,21,34,55,……},其首两项为0和1,以后各项时其前两项之和。 import java.util.Arrays; import java.util.Scanner; public class Ar 阅读全文
posted @ 2022-10-12 19:36 knlf 阅读(204) 评论(0) 推荐(0)
摘要: public class Test2 { public static void main(String[] args) { Scanner sc= new Scanner(System.in); System.out.println("请输入第一个圆的半径"); int r1 = sc.nextIn 阅读全文
posted @ 2022-10-12 11:00 knlf 阅读(97) 评论(0) 推荐(0)