how to remove +1 from number using java code example Example: java eliminate numbers from string firstname1 = firstname1.replaceAll("[0-9]","");