Чую - перемудрил. А в чем? Укажите, пожалуйста.
package com.javarush.task.task06.task0606;
/*
Чётные и нечётные циферки
*/
import java.io.*;
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String str = reader.readLine();
int num = Integer.parseInt(str);
int j = 1;
for (int i = 0; str.length() >= i; i++) {
j = j * 10;
}
while (j > 1) {
if ((num / j) % 2 == 0) {
even++;
}
else odd++;
j = j / 10;
}
System.out.println("Even: " + even + " Odd: " + odd);
}
}