Skip to content

Instantly share code, notes, and snippets.

@LaurentiuGabriel
Created June 20, 2020 18:59
Show Gist options
  • Select an option

  • Save LaurentiuGabriel/ca577fe2da8dc4a103746b1f8e799a9c to your computer and use it in GitHub Desktop.

Select an option

Save LaurentiuGabriel/ca577fe2da8dc4a103746b1f8e799a9c to your computer and use it in GitHub Desktop.
public class Application {
public static void main(String[] args) {
int variable = 3;
if ((variable != 5) && (variable == 0)){
System.out.println("Variable is greater than five.");
}
else if (variable == 5){
System.out.println("Else if here.");
}
else {
System.out.println("Variable is less than five.");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment