import java.util.Arrays; import java.util.Scanner; public class PJJJeden { public static void main(String[] args) { int[] tab = {5 ,2 ,7 , 4, 5, 9, 7, 8}; System.out.print(Arrays.toString(tab)); System.out.println(); Arrays.sort(tab); System.out.println(); System.out.println(); System.out.print(Arrays.toString(tab)); } }
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