日期:2014-05-20 浏览次数:20652 次
public class lianxi5 { public static void main(String args[]) { String a = "a b c"; String b = a.replaceAll("\\s*", ""); for (int i = 0; i < b.length(); i++) { System.out.println(b.charAt(i)); } } }