import java.nio.*; import java.nio.IntBuffer; public class TransferToArray { public static void main(String[] argv) throws Exception { int[] array = new int[] { 7, 5, 4, 3 }; IntBuffer intBuf = IntBuffer.wrap(array); int[] arr = new int[intBuf.limit()]; intBuf.get(arr); System.out.println("Content transfer from buffer to array."); for (int i = 0; i < arr.length; i++) System.out.println(arr[i]); } }