Arrays.sort();
:: ¹ҡѹ :: ǡѺ Array Ѻ
หน้า 1 จาก 1
Arrays.sort();
import java.util.Arrays;
************************************
int [] arr = {15,10,25,36,55,12,20};
for(int a :arr) System.out.print(a+" ");
System.out.println("\\n------------------------------");
Arrays.sort(arr);
for(int a :arr) System.out.print(a+" ");
************************************
int [] arr = {15,10,25,36,55,12,20};
for(int a :arr) System.out.print(a+" ");
System.out.println("\\n------------------------------");
Arrays.sort(arr);
for(int a :arr) System.out.print(a+" ");
:: ¹ҡѹ :: ǡѺ Array Ѻ
หน้า 1 จาก 1
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ