Last active
March 15, 2021 11:27
-
-
Save coolsasindu/0f5b3b9eb258ab554afbcfad4b5c1566 to your computer and use it in GitHub Desktop.
This file contains 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
class Conditional_opr { | |
public static void main(String args[]){ | |
boolean Ans = false; | |
int i = Ans ? 1 : 0; // 0 | |
System.out.println(i); | |
//----------------------------------------- | |
boolean Ans1 = true; | |
String a = Ans1 ? "yes" : "no"; // 1 | |
System.out.println(a); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment