Answers for "how , remove in amount java string"

0

java eliminate numbers from string

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

how to remove letters from string java

public extractLetters(String str){
	String result="";
	for(int i= 0; i< str.length; i++){
	    if(Character.isLetter(str.charAt(i))){
	    result+=str.charAt(i);
	  	}
	}
Posted by: Guest on January-14-2021

Code answers related to "how , remove in amount java string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language