package hello;import java.util.Scanner;public class DoubleArray2 { public static void main(String []args){ int[] num = {10,12,23,45,90}; Scanner sc = new Scanner(System.in); while(true) { System.out.print("请输入你需要插入的数:"); int in = sc.nextInt(); if(in<=num[0]){ int []num1 = new int[num.length+1]; for(int j=0;j
Java初学实现动态插入数组
时间:2023-06-19
下一篇:大数据技术【4】
相关推荐