Answers for "from string remove the numbers"

0

java eliminate numbers from string

firstname1 = firstname1.replaceAll("[0-9]","");
Posted by: Guest on May-18-2021
0

how to remove numbers from string java

Extract  numbers from a string

Character.isDigit(str.charAt(i))
Character.isLetter(str.charAt(i))
Character.isAlphabetic(str.charAt(i))

String password = "cnE4g1Z5y9A";	
String[] letters= password.split("[0-9]");    ==> cnEgZyA
String[] letters= password.split("[A-Za-z]");    ==> 4159
Posted by: Guest on January-14-2021

Code answers related to "from string remove the numbers"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language