Here you can find the source of containsNonNumericCharacters(String rawInput)
public static boolean containsNonNumericCharacters(String rawInput)
//package com.java2s; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static boolean containsNonNumericCharacters(String rawInput) { Pattern p = Pattern.compile("(\\D+)"); Matcher m = p.matcher(rawInput); return m.find(); }/*from ww w .j a v a 2 s . co m*/ }