Fill a Short Array using Index in Java
Declaration : [crayon-5bcd72ab35c5a633823191/] Explanation : Purpose The java.util.Arrays.fill(short[] a int fromIndex int toIndex short val) method assigns the specified short value to each element of the specified range of the specified array of shorts. The range to be filled extends from index fromIndex inclusive to index toIndex exclusive.(If fromIndex==toIndex the range to be filled is empty.). Parameters a ===> This is the array to be filled.fromIndex ===> This is the index of the first element (inclusive) to be filled with the specified value.toIndex ===> [...]