package com.fqs.test; import java.util.Arrays; import java.util.Random; import java.util.Scanner; public class hello { public static void main(String[] args) { //需求 程序自动生成一个1到100之间的随机数字A,键盘输入数B 猜数字 int [] arr={1,2,3}; System.out.println(Arrays.toString(arr));//导入Arrays包 转格式为字符串 } }
标签:arr,java,55,打印,util,Arrays,数组,import,public From: https://www.cnblogs.com/haha1988/p/17461436.html