mirror of
https://github.com/corda/corda.git
synced 2025-03-18 01:55:19 +00:00
add Arrays.fill
This commit is contained in:
parent
6409747f17
commit
d28a860138
@ -106,4 +106,17 @@ public class Arrays {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public static void fill(int[] array, int value) {
|
||||
for (int i=0;i<array.length;i++) {
|
||||
array[i] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public static void fill(char[] array, char value) {
|
||||
for (int i=0;i<array.length;i++) {
|
||||
array[i] = value;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user