Created
January 1, 2018 22:40
-
-
Save ryanckulp/edd537430235dfbe33d59a8c3658580c to your computer and use it in GitHub Desktop.
if/else example in Java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int x = 4; | |
if (x == 4) { | |
System.out.println("Correct!"); | |
} else { | |
System.out.println("Inorrect!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment