Java - How to move element in Array to another Array? -
I created this code:
integer [] array = new integer [999 ]; Integer [] dump = new integer [99 9]; For (int i = 0; xconv = 0;! ++ i) {// ignore this array [i] = xconv% 2; // ignore this xconv = xconv / 2; // ignore this println ("array =" + array [i] + "xconv =" + xconv); & Lt ;; & Lt; & Lt; & Lt; & Lt; // do this, then (array [i] == faucet) // // ignore the ignore array here [i] = ArrayUtils.toArray (dump, i); // & lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; & Lt; See here}} System.out.println (Arrays.toString (array)); // & lt; & Lt; & Lt; & Lt; & Lt; & Lt; Look at here I want to move the element which is zero value if the structure wants to "dump" another array, because if I do not do this, then this "tap" A bunch of values keeps showing, when he reads the last line I tried to use ArrayUtils.toArray, but netbeans im keeps using it incorrectly how should I do this and it should show only those elements Which really Have some values inside? Thanks
Not sure how Java works for JavaDoc:
Comments
Post a Comment