按照#@分割one123#tow456@three7890字符串
分割结果为one123 tow456 three7890
黑色头发:http://heisetoufa.iteye.com
分割结果为one123 tow456 three7890
public class Test01 {
public static void main(String[] args) {
String str = "one123#tow456@three7890";
String[] strs = [color=red]str.split([#@]); [/color]
for(int i = 0; i < strs.length; i++) {
System.out.printf("strs[%d] = %s%n", i, strs[i]);
}
}
}
黑色头发:http://heisetoufa.iteye.com