标签:array import main 顺序 int stat arrays port 输出
import java.util.Arrays;
public class Kong {
public static void main(String[] args) {
int[] arr = { ‘a‘, ‘c‘, 93, 92, 97, ‘b‘ };
int[] arr2 = { ‘a‘, ‘c‘, 93, 92, 97, ‘b‘ };
System.out.println("arr与arr2是否相等:" + Arrays.equals(arr, arr2));//输出true
}//当每一个字符的顺序相等即true
}
标签:array import main 顺序 int stat arrays port 输出
原文地址:https://www.cnblogs.com/Lovemeifyoudare/p/10304452.html