1.将一个基本数据类型数组的引用赋值给另一个数组 public class Array_copy { int[] array1=new int[]{1,2,3,4,5,6}; int[] array2=array1;//将array1的引用赋值给array2,两数组指向同一个内存空间 public static void main(String args[]){ Array_copy ac = new Array_copy(); for (int i=0;i<ac.array1.length;i…
import java.util.Scanner; public class ArrayDemo { public static void main(String []args) { //------------------------------------------------------- //线性查找 int [] num ={10,20,30,40,50}; Scanner input1 = new Scanner(System.in); System.out.println("请输…