I was fortunate enough to read practical material for SCJP , and I just stumbled over the head of flow control and others, where they give the impression that " else if" is the key word of my choice. I always thought it was just normal else, containing only a block if, brackets are omitted.
else if
else
if
So what is this?
Edit: I would like to emphasize that this issue is more relevant to the category of “pique my interest” than to “serious business”.
, - Java else if. , , if else.
EDIT: / , -, , else if (, , ), , /, .
, .
else { if { ... } }
.
else .
else, . if.
, else, if , . switch, else if.
, . , else , .
Java
"elsif", "elseif" "else if" ( case), Java .
Java, C , Java C.
, , . .
, "if".