### Question:
Sentenizer { public static String[] split(String sent) { List<Integer> plist = new ArrayList<Integer>(); int p = 0; for (int i = 0; i < puncs.length; i++) { p = sent.indexOf(puncs[i]); while (p != -1) { plist.add(p); p = sent.indexOf(puncs[i], p + 1); } } Collections.sort(plist); if (!plist.isEmpty()) { p = plist.get(plist.size() - 1); if (p < sent.length() - 1) plist.add(sent.length() - 1); }else { plist.add(sent.length() - 1); } String[] ret = new String[plist.size()]; p = 0; for (int i = 0; i < plist.size(); i++) { ret[i] = sent.substring(p, plist.get(i) + 1); p = plist.get(i) + 1; } plist.clear(); return ret; }  static void setPuncs(char[] puncs); static String[] split(String sent);  }### Answer:
@Test public void testSplit() { String sent = " 回顾王适娴职业生涯成长历程，2008年只参加了两站国内进行的公开赛？呵呵"; String[] subsents = Sentenizer.split(sent); System.out.println(MyStrings.toString(subsents,"\n")); }