String s=“10,12;23,34,15;6,7,8”;请将s字符串解析后存入到一个二维数组中. |
public static void main(String[] args)
{
String s="10,12;23,34,15;6,7,8";
String arr[] = s.split(";");
String retArr[][] = new String[arr.length][];
for(int i=0;i<arr.length;i++)
{
retArr[i] = arr[i].split(",");
}
}
http://topic.csdn.net/u/20110709/17/703569c6-92d1-40f9-b675-860caf7d9776.html
最后
以上就是坚定茉莉最近收集整理的关于字符串两次分割的全部内容,更多相关字符串两次分割内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复