Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
非常简单的问题,我找不到一个好的解决方案:
val a1 = Array[Byte](1, 2, 3) val a2 = Array[Byte](4, 5, 6)
如何将这两个数组连接在一起?我不介意第一个数组是否被第二个扩展。
嗯,突然一问就很容易找到了!
val joinArray = a1 ++ a2