摘要:
import java.util.Arrays;public class ArraysText { public static void main(String[] args) {// 1. boolean equals(int[] a,int[] b) int[] arr1 = new int[] 阅读全文
posted @ 2020-07-05 19:00
GuanErA
阅读(101)
评论(0)
推荐(0)
摘要:
public class BubbleSortText { public static void main(String[] args) {// 冒泡排序 int[] arr = new int[]{13,154,78,11,11,55,84,15,8712}; for (int i = 0; i 阅读全文
posted @ 2020-07-05 18:58
GuanErA
阅读(35)
评论(0)
推荐(0)
摘要:
public class ArrayText3 { public static void main(String[] args) {// 数组的复制,反转,查找 String[] arr = new String[]{"jj","dd","mm","dd","gg","aa"}; String[] 阅读全文
posted @ 2020-07-05 18:57
GuanErA
阅读(109)
评论(0)
推荐(0)
摘要:
public class ArrayText2 { public static void main(String[] args) {// 把array1初始化为8个素数,2,3,5,7,11,13,17,19 int[] arr1,arr2; arr1 = new int[]{2,3,5,7,11, 阅读全文
posted @ 2020-07-05 18:56
GuanErA
阅读(524)
评论(0)
推荐(0)
摘要:
[10,99];公式:(int)(Math.random() * (99 - 10 + 1 ) + 10) public static void main(String[] args) { int[] arr = new int[10]; for (int i = 0; i < arr.length 阅读全文
posted @ 2020-07-05 18:54
GuanErA
阅读(1512)
评论(0)
推荐(0)

浙公网安备 33010602011771号