fill


Description:

public static void fill (int[] arr, int val)

Fills all elements with the same value.

Parameters:

arr

target array.

val

fill value.