Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, October 29, 2015

Codecademy > Learn Java > If-ElseIf-Else Statement Sample Solution


public class IfElseIf {
public static void main(String[] args) {

int round = 7;

if (round > 12) {

System.out.println("The match is over!");

} else if (round > 0) {

System.out.println("The match is underway!");

} else {

System.out.println("The boxing match hasn't started yet.");

}
}
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts