Not sure what's happening, but can anyone proofread my code. Trying to see what I am doing wrong. Thank you!
package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static boolean isContinue = true;
public static int temp = 0;
public static void main(String[] args) throws IOException {
//read input from the line
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
String input = buffer.readLine();
int inputNum = Integer.parseInt(input);
//get digits and determine if even or odd for each digit and keep track of the number of each
while(isContinue){
temp = inputNum%10;
inputNum = inputNum/10;
if(inputNum == 0){
isContinue = false;
}
if(temp%2 == 0){
even++;
}else {
odd++;
}
}
System.out.printf("Even: %d Odd: %d", even, odd);
}
}