static void fill(boolean[] a, boolean val)
static void fill(boolean[] a, int fromIndex, int toIndex, boolean val)
static void fill(byte[] a, byte val)
static void fill(byte[] a, int fromIndex, int toIndex, byte val)
static void fill(char[] a, char val)
static void fill(char[] a, int fromIndex, int toIndex, char val)
static void fill(float[] a, float val)
static void fill(float[] a, int fromIndex, int toIndex, float val)
static void fill(int[] a, int val)
static void fill(int[] a, int fromIndex, int toIndex, int val)
static void fill(Object[] a, int fromIndex, int toIndex, Object val)
static void fill(Object[] a, Object val)
static void fill(short[] a, int fromIndex, int toIndex, short val)
static void fill(short[] a, short val)
_INSERT_METHOD_SIGNATURE_HERE_
Description:
fill(boolean[] a, boolean val) method:
Assigns the specified boolean value to each element of the specified array of booleans.
fill(boolean[] a, int fromIndex, int toIndex, boolean val) method:
Assigns the specified boolean value to each element of the specified range of the specified array of booleans. The range to be filled extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be filled is empty.
fill(byte[] a, byte val) method:
Assigns the specified byte value to each element of the specified array of bytes.
fill(byte[] a, int fromIndex, int toIndex, byte val) method:
Assigns the specified byte value to each element of the specified range of the specified array of bytes. The range to be filled extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be filled is empty.
fill(char[] a, char val) method:
Assigns the specified char value to each element of the specified array of chars.
fill(char[] a, int fromIndex, int toIndex, char val) method:
Assigns the specified char value to each element of the specified range of the specified array of chars. The range to be filled extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be filled is empty.
fill(float[] a, float val) method:
Assigns the specified float value to each element of the specified array of floats.
fill(float[] a, int fromIndex, int toIndex, float val) method:
Assigns the specified float value to each element of the specified range of the specified array of flaots. The range to be filled extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be filled is empty.
fill(int[] a, int val) method:
Assigns the specified int value to each element of the specified array of ints.
fill(int[] a, int fromIndex, int toIndex, int val) method:
Assigns the specified int value to each element of the specified range of the specified array of ints. The range to be filled extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be filled is empty.
fill(Object[] a, Object val) method:
Assigns the specified Object reference to each element of the specified array.
Note that there will be only one object on the heap.
fill(Object[] a, int fromIndex, int toIndex, Object val) method:
Assigns the specified Object reference to each element of the specified range in the array. The range to be filled extends from index fromIndex, inclusive, to index toIndex, exclusive. If fromIndex==toIndex, the range to be filled is empty.
Note that there will be only one object on the heap.
fill(short[] a, short val) method:
Assigns the specified short value to each element of the specified array of shorts.
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.
Example
int intArray[] = new int[10];
Arrays.fill(intArray,10);
for (int i = 0; i < 10; i++)
Logger.log(i + " element has a value of: " + intArray[i]);
The example above assigns a value of 10 to every element in the intArray.