java如何把字符串String?
String s = "<ABCDEFGHIJK>SDFER<EGD>FG";// 存放大小寫改變后的字符串String ns = "";String[] ts = s.split("<");int len = ts.length;for(int i=0;i<len;i++){if(ts[i].contains(">")){String[] tmp = ts[i].split(">");ns += "<" + tmp[0].toLowerCase() + ">" + tmp[1];}}System.out.println(ns);
下一篇情感的英文諺語