So.. with a little help from @Heavy I got the program to run..but while I'm getting the correct output I'm faiing multiple requirements.
Hmmm
package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a= Integer.parseInt(reader.readLine());
int odd = 0 ;
int even = 0;
while (a >0) {
if (a%2 == 0) {
even ++;
} else {
odd ++;
}
a/=10;
}
System.out.println("Even: "+even+" Odd: "+odd);
}
}