Hello, I have the following code but when I debug the code I get the following error: "java: variable sum might not have been initialized"
Why I am not allowed to declare int variables sum and m in the same row using the formula " int sum, m = 0". The only way it is accepted is by declaring them individually;
public static int sumDigitsInNumber(int number) {
int sum, m = 0;
//rest of code