Code:
String s="<< Mr John is a single man he lives in alabama his phone number is 1111111111111 >>"; int i=0; char ch; String temp=""; while(i<s.length()) { ch=s.charAt(i++); if((ch>='0'&&ch<='9')||ch=='+') { while((ch>='0'&&ch<='9')||ch=='+'||ch=='-'||ch=='
Leave a comment: