Answers for "How do you remove a given character from String?"

1

how to remove letters from string

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
0

remove charachter from string

StringBuilder sb = new StringBuilder(inputString);
Posted by: Guest on February-02-2021

Code answers related to "How do you remove a given character from String?"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language