String inputKey ; inputKey = inputKey.replaceAll("[^\\d]", ""); int inputKeyInt = inputKey ;
inputKey = inputKey.replaceAll("[^\d]", ""); inputKey 안에 들어있는 숫자를 제외한 모든 문자를 제거함.
"" << 빈칸 없어야함 주의!!