ternärer operator java
final String msg = num > 10
? "Number is greater than 10"
: "Number is less than or equal to 10";
ternärer operator java
final String msg = num > 10
? "Number is greater than 10"
: "Number is less than or equal to 10";
ternärer operator java
int num = 8;
String msg = "";
if(num > 10) {
msg = "Number is greater than 10";
}
else {
msg = "Number is less than or equal to 10";
}
java ternärer operator
bedingung ? wert1 : wert2
java ternärer operator
variable = bedingung ? wert1 : wert2
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us