import java.util.Arrays; public class PJJJeden { public static void main(String[] args) { int[] arr = { 13, 7, 6, 45, 21, 9, 2, 100 }; Arrays.sort(arr, 0, arr.length); System.out.println("Modified arr[] : " + Arrays.toString(arr)); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter