Would you like to react to this message? Create an account in a few clicks or log in to continue.

Arrays.sort();

Go down

 Arrays.sort(); Empty Arrays.sort();

ตั้งหัวข้อ  Admin Thu May 22, 2008 2:08 pm

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+" ");
Admin
Admin
Admin

จำนวนข้อความ : 112
Registration date : 18/05/2008

http://chawban.chocoforum.com

ขึ้นไปข้างบน Go down

ขึ้นไปข้างบน

- Similar topics

 
Permissions in this forum:
คุณไม่สามารถพิมพ์ตอบ