Java.Util.Arrays.Fill Method
Fills the specified range in the array with the specified element.

Syntax

[Android.Runtime.Register("fill", "([Ljava/lang/Object;IILjava/lang/Object;)V", "")]
public static void Fill (Java.Lang.Object[] array, int start, int end, Java.Lang.Object value)

Parameters

array
the Object array to fill.
start
the first index to fill.
end
the last + 1 index to fill.
value
the Object element.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif start > end.
Java.Lang.ArrayIndexOutOfBoundsExceptionif start or end > array.length.

Remarks

Fills the specified range in the array with the specified element.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1