Sorting an array in Java

 int[] array = {1, 2, 3, -1, -2, 4};

Arrays.sort(array); System.out.println(Arrays.toString(array));

Comments

Popular posts from this blog

Android - Using KeyStore to encrypt and decrypt the data

Stack and Queue

Java Reflection API