Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Arrays;

public class Main {
    public static void main(String[] argv) throws Exception {

        int startIndex = 0;
        int endIndex = 4;

        float[] floatArr = new float[10];
        float floatFillValue = 1;

        Arrays.fill(floatArr, startIndex, endIndex, floatFillValue);
    }
}