To sort Short array, use the Arrays. sort() method. Let us first declare and initialize an unsorted Short array. short[] arr = new short[] { 35, 25, 18, 45, 77, 21, 3 }