将字符串转换为字符数组。

String ss = "44,55,99,56,25";//给定一个字符串
String [] arr = ss.split(",");//转换为字符数组

posted @ 2019-11-05 14:29  一块  阅读(1056)  评论(0编辑  收藏  举报