java 分割字符串

类:java.util.StringTokenizer

 

StringTokenizer st = new StringTokenizer(“This is a Test");


while(st.hasMoreTokens()){


      System.out.println(st.nextToken());

     }

你可能感兴趣的:(java 分割字符串)