Run ❯
Get your
own Java
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import java.util.Arrays; public class Main { public static void main(String[] args) { int[] myNum = {50, 10, 25, 1, 17, 99, 33}; Arrays.sort(myNum); for (int i : myNum) { System.out.println(i); } } }
1
10
17
25
33
50
99