Java Arrays fill方法-使用索引填充long Java Arrays fill方法-使用索引填充int Java Arrays fill方法-填充long Java Arrays fill方法-使用索引填充long package com.codingdict; import java.util.Arrays; public class ArrayDemo { public static void main(String[] args) { // initializing long array long arr[] = new long[] {12, 56, 19, 33, 17}; // let us print the values System.out.println("Actual values: "); for (long value : arr) { System.out.println("Value = " + value); } // using fill for placing 10 from index 1 to 3 Arrays.fill(arr, 1, 3, 10); // let us print the values System.out.println("New values after using fill() method: "); for (long value : arr) { System.out.println("Value = " + value); } } } Java Arrays fill方法-使用索引填充int Java Arrays fill方法-填充long