here's my type of code, is'nt it simple??
class Charactering
{
public static void main(String args[])
{
String name = "23AM";
char c;
String a="", b="";
for(int i=0; i< name.length(); i++)
{
c=name.charAt(i);
if ( Character.isDigit(c))
{
a += c;
continue;
}
else
{
b+=c;
}
}
System.out.println(a);
System.out.println(b);
}
}