是否可以將數組放入二維數組中?爲了解釋:我需要一個二維字節數組,但是我也需要每個單元的三個字節值。它看起來是這樣的:數組內的二維數組?
+-------------+-------------+
| 123,234,125 | 255,109,167 |
+-------------+-------------+
| 172,144,134 | 145,212,124 |
+-------------+-------------+
或者在更適當的格式:
[ [ [ 123,234,125 ] , [ 255,109,167 ] ] , [ [ 172,144,134 ] , [ 145,212,124 ] ] ]
這將是包含三個字節數組二維數組。這在Java中可能嗎?
爲什麼你認爲這是不可能的? –
聽起來像你想[三維數組](http://stackoverflow.com/questions/11623990/understanding-three-dimensional-arrays)。 – thegrinner
這已問 http://stackoverflow.com/questions/4781100/how-to-make-an-array-of-arrays-in-java – jessebs