mirror of
https://github.com/corda/corda.git
synced 2025-05-31 14:40:52 +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