摘要: package package3; import java.util.ArrayList; import java.util.Collection; public class CollectionDemo1 { public static void main(String[] args) { //创 阅读全文
posted @ 2022-10-15 10:12 knlf 阅读(11) 评论(0) 推荐(0)
摘要: package class10_14.package1; import java.util.ArrayList; import java.util.Scanner; public class Test2 { public static void main(String[] args) { /*键盘录 阅读全文
posted @ 2022-10-14 17:16 knlf 阅读(50) 评论(0) 推荐(0)
摘要: package package2; import java.util.Arrays; //:有一个字符串:“91 27 46 38 50”, // 请写程序实现最终输出结果是:“27 38 46 50 91" public class Test2 { public static void main( 阅读全文
posted @ 2022-10-14 16:04 knlf 阅读(21) 评论(0) 推荐(0)
摘要: 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)
摘要: import java.util.Scanner; /*键盘录入一个字符串,统计该字符串中大写字母字符, 小写字母字符,数字字符出现的次数(不考虑其他字符)*/` ``public class StringDemo6 { public static void main(String[] args) 阅读全文
posted @ 2022-10-04 19:35 knlf 阅读(141) 评论(0) 推荐(0)
摘要: 纪念一下,第一次开通博客 阅读全文
posted @ 2022-09-28 10:13 knlf 阅读(17) 评论(0) 推荐(0)