import java.util.*;
class Demo14
{
public static void main(String[] args)
{
int[] arr = {12, 45, 23, 96, 78};
Arrays.parallelSort(arr);//排序
String info = Arrays.toString(arr);//查看数组元素
int index = Arrays.binarySearch(arr, 99);//用二分法查找数
System.out.println("数组的元素:" + info);
System.out.println("索引值:" + index);
}
}