Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.lang.reflect.Array;
import java.util.Arrays;

public class Main {
    public static void main(String args[]) {
        byte[] array = new byte[] { 1, 2, 3 };

        Array.setByte(array, 1, (byte) 9);

        System.out.println(Arrays.toString(array));

    }
}