String str="11:aa|22:bb|33:cc"; String s[]=str.split("\\|");
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/06 06:39:18
String str="11:aa|22:bb|33:cc"; String s[]=str.split("\\|");
for(int i=0;i
for(int i=0;i
s[0] ="11:aa"
s[1] ="22:bb"
s[2] ="33:cc"
i = 0 s2[0] = “11” s2[1] ="aa"
i = 1 s2[0] = “22” s2[1] ="bb"
i = 2 s2[0] = “33” s2[1] ="cc"
再问: 为什么i=1时不是s2[2]=''22",s2[3]="bb"
再答: String s2[]=s[i].split(":"); i = 1 s2[] = "22:bb".split(":"); 它只能被分割成 s2[0] s2[1] 怎么会有s2[2] s2【3】?
s[1] ="22:bb"
s[2] ="33:cc"
i = 0 s2[0] = “11” s2[1] ="aa"
i = 1 s2[0] = “22” s2[1] ="bb"
i = 2 s2[0] = “33” s2[1] ="cc"
再问: 为什么i=1时不是s2[2]=''22",s2[3]="bb"
再答: String s2[]=s[i].split(":"); i = 1 s2[] = "22:bb".split(":"); 它只能被分割成 s2[0] s2[1] 怎么会有s2[2] s2【3】?
String str="11:aa|22:bb|33:cc"; String s[]=str.split("\\|");
String str="11,22,33,44,55,66,"java方式变成String str2='11,22 33
dim str as string*10,str="123",len(str)返回值为10,为什么?string*10是
String aa,b,c; aa=”bb”; b=”dd”+aa; c=”cc”+b+aa; StringBuffer
jsp中的内容 String str=request.getParameter("guessnumber"); // 这
string str="123|234|456";怎么取到123,234,456啊
str = str.replace(//g,'');
问道数学题AA+BB+CC=ABC
String str2 = "";
java中str =str.subString(1,
str = "(" + str.replace(/[^\d.+-*\/()]+/g,"") + ")"; 是什么意思?
var str = "";是什么意思