How to append to an array in java. Copy. public static int[] addX(int n, int arr[], int x) { int i; // create a new array of size n+1 int newarr[] = new ...
確定! 回上一頁