package mengurutkanarray;
import java.util.Arrays;
public class MengurutkanArray {
public static void main(String[] args) {
// TODO code application logic here
int[] Array={5,2,8,7,1};
Arrays.sort(Array);
System.out.println(Arrays.toString(Array));
}
}
Output
No comments