一、字符串转化为数组splitString str = "aaa,bbb,ccc";String[] str2 = str.split(",");System.out.println(str2[2]);