11智能在线
新记
java 怎么将一个数组转化为对象
如题所述
举报该文章
相关建议 2020-03-03
用Arrays的内置方法可以转化。比如String数据转化成List对象。
String[]
fruit
=
{"apple",
"banana",
"orange"};
List<String>
fruitList
=
Arrays.asList(fruit);
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/2v4fvqm84fmqspv2ps.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
java 怎么将一个数组转化为对象
哪位知道在java中如何把一个Object对象转换成一个in...
java怎么定义一个数组中包含其他数组的数组
如何把“java”中一个文件转化为“byte”数组?
java中如何将一个对象变成byte[]
java中基本类型数组 转换为 对象数组
java 怎么将对象转化为字符串数组
java怎么把一个对象存到List里?