Hi jain,
Thanks 4 your motivation.I found solution without using split, substring ,etc
StringBuffer stringbf = new StringBuffer();
Matcher m = Pattern.compile("([a-z])([a-z]*)",
Pattern.CASE_INSENSITIVE).matcher("how are you");
while (m.find()) {
m.appendReplacement(stringbf,
m.group(1).toUpperCase() + m.group(2).toLowerCase());
}
System.out.println(m.appendTail(stringbf).toString());
I know split,substring but i want different style of code ,thats y i posted this quest. You just check this code
Think different !!!