转换ArrayList< Byte>变成一个字节[] [英] Convert ArrayList<Byte> into a byte[]
本文介绍了转换ArrayList< Byte>变成一个字节[]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将 ArrayList< Byte>
转换为 byte []
?
ArrayList.toArray()
给我一个 Byte []
。
推荐答案
调用toArray()后,您可以将结果传递给Apache Commons toPrimitive方法:
After calling toArray() you can pass the result into the Apache Commons toPrimitive method:
这篇关于转换ArrayList< Byte>变成一个字节[]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文