Concatenates two arrays. For example, concatenating the array { 1, 2, 3 } and the array { 4, 5, 6 } yields { 1, 2, 3, 4, 5, 6 }. Both parameters must be arrays of the same datatype. When using an array of objects, the data returned from the function must be cast to the object array's d
(boolean[] a, boolean[] b)
| 8134 | * @see PApplet#arrayCopy(Object, int, Object, int, int) |
| 8135 | */ |
| 8136 | static public boolean[] concat(boolean[] a, boolean[] b) { |
| 8137 | boolean[] c = new boolean[a.length + b.length]; |
| 8138 | System.arraycopy(a, 0, c, 0, a.length); |
| 8139 | System.arraycopy(b, 0, c, a.length, b.length); |
| 8140 | return c; |
| 8141 | } |
| 8142 | |
| 8143 | static public byte[] concat(byte[] a, byte[] b) { |
| 8144 | byte[] c = new byte[a.length + b.length]; |
no test coverage detected