选择排序: 冒泡排序: Read More
import java.util.ArrayList; public class ArrayListDemo{ public static void main(String[] args){ //格式: //ArrayList 变量名 = new ArrayList(); //存储的元素的类型是 里的类型 //里的类型必须是引用类型,不能是基本类型 //ArrayList... Read More
public class ArrayDemo{ public static void main(String[] args){ int[] arr = {1,5,3,8,2,9,17,13}; getMaxVal(arr); int[][] arr1 = {{1,2,3},{4,5},{8,9,10}}; getSumVal(arr1); } //一维数组求最值 ... Read More