public class CountDigits{
public static void main(String[] args) {
int num = 1234 , count = 0;
while (num != 0){
num = num/ 10; // Remove the digit from the number
count++
}
System.out.println("Digit Count: "+count);
}
}
str1 = gaming;
str2 = time;
String s1 = str1.replaceAll("\\s", "");
String s2 = str2.replaceAll("\\s", "");
char[] ca1 = s1.toLowerCase().toCharArray();
char[] ca2 = s2.toLowerCase().toCharArray();