Filling Elements in an Array: float type
import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { float[] floatArr = new float[10]; float floatFillValue = -1; Arrays.fill(floatArr, floatFillValue); } }