Rewrite without using logical operator:
if (code==65 || code==90)
System.out.println ("UPPERCASE");
Answers
Answered by
0
Answer:
1
2
3
4
5
6
7
8
/**
* Comment to state the purpose of the program
*/
public class Classname { // Choose a meaningful Classname. Save as "Classname.java"
public static void main(String[] args) { // Entry point of the program
// Your programming statements here!!!
}
}
Explanation:
Answered by
0
Answer:
switch(code)
{
case 65:
case 90:
System.out.println("UPPERCASE");
break;
}
Explanation:
we need to use switch case because in the question they have used logical Or operator which used so that if either of the condition is true it should return true.
Similar questions
Math,
7 months ago
Social Sciences,
7 months ago