随笔分类 - JAVA学习
摘要:package com0713;import java.sql.Array;import java.util.Arrays;public class Demo03 { //选择排序 public static void main(String[] args) { int[] a = new int[
阅读全文
摘要: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,
阅读全文
摘要:package com0712;//递归求阶层public class Demo03 { public static void main(String[] args) { System.out.println(fac(10)); } public static long fac(int n){ if
阅读全文
摘要: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
阅读全文
摘要:package com;import java.util.Scanner;/* * 动态日历: * 1. 从控制台输入年和月,在控制天显示当前月的日历 * */public class Demo17 { public static void main(String[] args) { // 1.从控
阅读全文
摘要: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.
阅读全文
摘要:package com0708;public class Text1 { public static void main(String[] args) {// boolean isLarg = true; lags:for (int i = 2; i < 1000; i++) { for (int
阅读全文
摘要:package com;import java.util.Scanner;/* * 求最大公约数 求最小公倍数 * */public class Test1 { public static void main(String[] args) { Scanner scanner = new Scanne
阅读全文

浙公网安备 33010602011771号