Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.nio.ShortBuffer;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        ShortBuffer bb = ShortBuffer.wrap(new short[] { 0, 1, 2, 3, 4, 5, 6 });
        bb.put(0, (short) 100);
        System.out.println(Arrays.toString(bb.array()));

    }
}