int[] a=new int[5]; a={2,1,5,4,3}; Arrays.sort(a);
하면 {1,2,3,4,5} 가 됨
import java.util.Arrays;
임포트가 필요함