Java基础之数组

 公司新闻     |      2019-08-02 10:49
public static void main {
 int[] arr = new int[]{34, 23, 56, 21, 19,68,10};
 system.out.print;
 for  {
 system.out.print;
 for  {
 int temp = arr[minindex];
 arr[minindex]=arr[maxindex];
 arr[maxindex]=temp;
 system.out.println;
 system.out.print;
 for  {
 system.out.print;
 }