复制代码
1groovy list转化为数组
复制代码
1
2
3
4
5
6
7
8
9
10
11
12List对象转化成数组对象非常简单: List list = ['a','b','c','d'] def strs = list as String[] println strs[0]
List对象转化成数组对象非常简单: List list = ['a','b','c','d'] def strs = list as String[] println strs[0] println strs result:
a
[a, b, c, d]
最后
以上就是外向红酒最近收集整理的关于groovy list转化为数组的全部内容,更多相关groovy内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复