/** * 包括空格判断 * @param input * @return */ public static boolean containSpace(String input){ return Pattern.compile("\\s+").matcher(input).find(); }