|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Arrays
public class Arrays
Arrays contains static methods which operate on arrays.
| Method Summary | |
|---|---|
static void |
fill(byte[] array,
byte value)
Fills the specified array with the specified element. |
static void |
fill(byte[] array,
int start,
int end,
byte value)
Fills the specified range in the array with the specified element. |
static void |
fill(char[] array,
char value)
Fills the specified array with the specified element. |
static void |
fill(char[] array,
int start,
int end,
char value)
Fills the specified range in the array with the specified element. |
static void |
fill(int[] array,
int value)
Fills the specified array with the specified element. |
static void |
fill(int[] array,
int start,
int end,
int value)
Fills the specified range in the array with the specified element. |
static void |
fill(Object[] array,
int start,
int end,
Object value)
Fills the specified range in the array with the specified element. |
static void |
fill(Object[] array,
Object value)
Fills the specified array with the specified element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, println, toString |
| Method Detail |
|---|
public static void fill(byte[] array,
byte value)
array - the byte array to fillvalue - the byte element
public static void fill(byte[] array,
int start,
int end,
byte value)
array - the byte array to fillstart - the first index to fillend - the last + 1 index to fillvalue - the byte element
IllegalArgumentException - when start > end
ArrayIndexOutOfBoundsException - when start < 0 or
end > array.size()
public static void fill(char[] array,
char value)
array - the char array to fillvalue - the char element
public static void fill(char[] array,
int start,
int end,
char value)
array - the char array to fillstart - the first index to fillend - the last + 1 index to fillvalue - the char element
IllegalArgumentException - when start > end
ArrayIndexOutOfBoundsException - when start < 0 or
end > array.size()
public static void fill(int[] array,
int value)
array - the int array to fillvalue - the int element
public static void fill(int[] array,
int start,
int end,
int value)
array - the int array to fillstart - the first index to fillend - the last + 1 index to fillvalue - the int element
IllegalArgumentException - when start > end
ArrayIndexOutOfBoundsException - when start < 0 or
end > array.size()
public static void fill(Object[] array,
Object value)
array - the Object array to fillvalue - the Object element
public static void fill(Object[] array,
int start,
int end,
Object value)
array - the Object array to fillstart - the first index to fillend - the last + 1 index to fillvalue - the Object element
IllegalArgumentException - when start > end
ArrayIndexOutOfBoundsException - when start < 0 or
end > array.size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||