Advertisements
Advertisements
प्रश्न
Rewrite the following code using single if statement.
if(code=='g')
System.out.println("GREEN");
else if(code=='G')
System.out.println("GREEN");एक पंक्ति में उत्तर
Advertisements
उत्तर
if(code=='g' || code=='G')
System.out.println("GREEN");shaalaa.com
Introduction of Conditional Statements in Java
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
_______ statement can be used as alterative to if-else statement.
Which statement in switch case is used to exit the statement once the appropriate choice is found?
Which of the following is not a branching statement?
The _______ statement is especially useful when testing all the possible results of an expression.
<script type=“text/javascript”>
x = 6 + “3”;
document.write(x);
</script>
what will be the output?
Write the general syntax for switch statement.
Write the syntax for else-if statement.
Explain switch case statement with example.
The absence of which statement leads to fall through situation in switch case statement?
Which of the following data type cannot be used with switch case construct?
