一、使用步骤
1.转换
代码如下(示例):
pk = [ABC,DEF];
//根据逗号截取数组
String[] str = pk.split(",");
//根据数组的长度循环遍历
for (int w = 0; w < str.length; w++) {
System.out.print(str[w]);
}
2.Maven后台处理前台String数组
代码如下(示例):
for (int w = 0; w < str.length; w++) {
//格式强转换
list = Collections.singletonList(SaloutbillService.findByNumber(str[w]));
}
总结
这里对文章进行总结:以上就是今天要讲的内容,本文仅仅简单介绍了Java转的数组使用