Java Arrays asList方法 Java ArrayList addAll方法 Java Arrays binarySearch方法 Java Arrays asList方法 package com.codingdict; import java.util.Arrays; import java.util.List; public class ArrayDemo1 { public static void main (String args[]) { // create an array of strings String a[] = new String[]{"abc","klm","xyz","pqr"}; List list1 = Arrays.asList(a); // printing the list System.out.println("The list is:" + list1); } } Java ArrayList addAll方法 Java Arrays binarySearch方法