Java if else statement not working

Printable View