From 1ed90c38ab7e07315d1de3b1ff6f267c863be4c4 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sat, 2 Nov 2013 00:21:03 -0500 Subject: [PATCH] Implement rest of the Arrays#fill family Signed-off-by: Johannes Schindelin --- classpath/java/util/Arrays.java | 38 ++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/classpath/java/util/Arrays.java b/classpath/java/util/Arrays.java index e640acec33..9f2ef702c5 100644 --- a/classpath/java/util/Arrays.java +++ b/classpath/java/util/Arrays.java @@ -343,7 +343,43 @@ public class Arrays { array[i] = value; } } - + + public static void fill(short[] array, short value) { + for (int i=0;i void fill(T[] array, T value) { for (int i=0;i