char tmpCh
int[] num = {0,0,0,0};
for(int i = 0; i< s.length(); i++)
{
tmpCh = s.charAt(i);
if(tmpCh > '0' && tmpCh < '9')
{
num[0]++;
}
else if(tmpCh > 'A' && tmpCh < 'Z')
{
num[1]++;
}
else if(tmpCh > 'a' && tmpCh < 'z')
{
num[2]++;
}
else
num[3]++;
}
int[] num = {0,0,0,0};
for(int i = 0; i< s.length(); i++)
{
tmpCh = s.charAt(i);
if(tmpCh > '0' && tmpCh < '9')
{
num[0]++;
}
else if(tmpCh > 'A' && tmpCh < 'Z')
{
num[1]++;
}
else if(tmpCh > 'a' && tmpCh < 'z')
{
num[2]++;
}
else
num[3]++;
}
char tmpCh
int[] num = {0,0,0,0};
for(int i = 0; i< s.length(); i++)
{
tmpCh = s.charAt(i);
if(tmpCh > '0' && tmpCh < '9')
{
num[0]++;
}
else if(tmpCh > 'A' && tmpCh < 'Z')
{
num[1]++;
}
else if(tmpCh > 'a' && tmpCh < 'z')
{
num[2]++;
}
else if(tmpCh == 32)
num[3]++;
}