Also it is better NOT to hide {s by putting code after them on the same line.

else{System.out.println("Incorrect."); // { hidden
vs
else { // { easier to see
...