摘要:
public String[] strchange(String str, char ch) { int a = 0; //存放ch的数量 for (int i = 0; i < str.length(); ++i) if (ch == str.charAt(i)) ++a; String[] arr = new String[a + 1]; Integer[] arrint = new Integer[a]; int b = 0; //增量,实现同步 for (int i = 0; i < str.length(); ++i) if (ch == str.charAt(i)).. 阅读全文