摘要: package com0713;import java.sql.Array;import java.util.Arrays;public class Demo03 { //选择排序 public static void main(String[] args) { int[] a = new int[ 阅读全文
posted @ 2021-07-14 08:51 JAVVA小拉拉 阅读(25) 评论(0) 推荐(0)
摘要: package com0712;//使用二分法从一组数中找出目标数字public class Test4 { public static void main(String[] args) { int[] a = new int[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 阅读全文
posted @ 2021-07-12 20:37 JAVVA小拉拉 阅读(29) 评论(0) 推荐(0)
摘要: package com0712;//递归求阶层public class Demo03 { public static void main(String[] args) { System.out.println(fac(10)); } public static long fac(int n){ if 阅读全文
posted @ 2021-07-12 15:01 JAVVA小拉拉 阅读(128) 评论(0) 推荐(0)
摘要: package com0000;//不存在 相同数public class Demo { public static void main(String[] args) { int[] a = new int[6]; for (int i = 0; i < a.length; i++) { int b 阅读全文
posted @ 2021-07-12 08:49 JAVVA小拉拉 阅读(31) 评论(0) 推荐(0)
摘要: package com;import java.util.Scanner;/* * 动态日历: * 1. 从控制台输入年和月,在控制天显示当前月的日历 * */public class Demo17 { public static void main(String[] args) { // 1.从控 阅读全文
posted @ 2021-07-12 08:43 JAVVA小拉拉 阅读(74) 评论(0) 推荐(0)
摘要: package com0000;//冒泡排序public class Demo01 { public static void main(String[] args) { int[] arr=new int[]{1,5,2,6,9,44,21,32,15,48}; for(int i=0;i<arr. 阅读全文
posted @ 2021-07-12 08:38 JAVVA小拉拉 阅读(18) 评论(0) 推荐(0)
摘要: package com0708;public class Text1 { public static void main(String[] args) {// boolean isLarg = true; lags:for (int i = 2; i < 1000; i++) { for (int 阅读全文
posted @ 2021-07-09 13:37 JAVVA小拉拉 阅读(378) 评论(0) 推荐(0)
摘要: package com;import java.util.Scanner;/* * 求最大公约数 求最小公倍数 * */public class Test1 { public static void main(String[] args) { Scanner scanner = new Scanne 阅读全文
posted @ 2021-07-09 13:32 JAVVA小拉拉 阅读(73) 评论(0) 推荐(0)