Conditional Statements
Use conditions to run different code paths based on logical tests.
int score = 92;
if (score >= 90) System.out.println("A");Try it Yourself
Run this JAVA example in your local environment or course sandbox.
Java Tutorial
Use conditions to run different code paths based on logical tests.
int score = 92;
if (score >= 90) System.out.println("A");