In this Java
program we are going to use Conditional Operator
//use of
Conditional Operator
class
ConditionalOperator3{
public
static void main(String args[]){
int a=0;
String
b=(a<1)?"Value of a is 0":"Value of a is not 0";
System.out.println(b);
}
}
No comments:
Post a Comment