public class Preson {
public static void main(String[] args) throws IOException
{
String a="sjioasaklj121zZAQaqw";
String[] s=a.split("\\d");
StringBuffer buff=new StringBuffer();
for(int i=0;i<s.length;i++){
if(s[i]!=""){
buff.append(s[i]);
}
}
System.out.print(buff);
}
} |