The first question refers to my solution which appears at the very bottom, the second refers to the screenshot I've attached. 1. Can't I declare and initialize variables in the body of the if-clause and for the case I can't, why is this? 2. In the screenshot I see my alternative approach. There I was declaring the variable before the if clauses, in the body of the method itself, and then I am initializing the variables in the bodies of the if-clauses. There, the compiler said that the variable might not get initialized. But in my understanding, one of the cases regarding the if clauses will be picked necessarily, so that the variable gets initialized anyhow. Am I wrong about this?