Praveen, you might wanna try this....
public static void main(String[] args) {
String s = "65234Markets6713Investments";
StringBuffer sb = new StringBuffer();
int pos = 1;
char[] ch = s.toCharArray();
for (int i = 0; i < ch.length; i++) {
if (Character.isDigit(ch[i])) {
if(pos!=1)
{
pos=1;
sb.append(',');
}
sb.append(ch[i]);
} else {
if (pos == 1) {
sb.append(',');
}
sb.append(ch[i]);
pos++;
}
}
System.out.println(sb.toString());
}
This gives this result
65234,Markets,6713,Investments
Nek