1String str = "abcdDCBA123";
2String strNew = str.replace("a", ""); // strNew is 'bcdDCBA123'
1# subString(int start, int end);
2
3String a = "Hello!";
4b = a.subString(0,a.length()-1) #Remove the last String
5# b should be "Hello" then
1public extractLetters(String str){
2 String result="";
3 for(int i= 0; i< str.length; i++){
4 if(Character.isLetter(str.charAt(i))){
5 result+=str.charAt(i);
6 }
7 }