Answers for "how to delete a character from a stirng"

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 to delete a character from a stirng"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language