Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
	  	}
	}
 
PREVIOUS NEXT
Tagged: #remove #letters #string #java
ADD COMMENT
Topic
Name
4+8 =