|
I have an Idea , which is a very simple ..
----------------------------------------
String str = "abc(xyz",newStr="";
for(int x=0; x<str.length();x++)
if(str.charAt(x)>='a' ||str.charAt(x)>='z' )//a ssuming they are all lower cases
newStr =""newStr+str.charAt(x);
-------------------------------------------------
I hope that helped - this code will only print letters while ..this -below- will not print this pranthes
----------------------------------------
String str = "abc(xyz",newStr="";
for(int x=0; x<str.length();x++)
if(str.charAt(x)!='(' )
newStr =""newStr+str.charAt(x);
-------------------------------------------------
|