Here you can find the source of Arrays_copyOf(int[] pos, int length)
Parameter | Description |
---|---|
pos | a parameter |
length | a parameter |
private static int[] Arrays_copyOf(int[] pos, int length)
//package com.java2s; //License from project: Apache License public class Main { /**//from w w w . j av a 2 s . com * GWT doesn't supply a Arrays.copyOf... therefore we implement it ourselves. * * @param pos * @param length * @return */ private static int[] Arrays_copyOf(int[] pos, int length) { int[] result = new int[pos.length]; for (int i = 0; i < pos.length; i++) result[i] = pos[i]; return result; } }