convert the following if else to a single condition statement
Answers
Answered by
0
Answer:
write the full question buddie :)
Answered by
2
Answer:
- Place your cursor in the if keyword.
- Place your cursor in the if keyword.Press Ctrl+. to trigger the Quick Actions and Refactorings menu.
- Place your cursor in the if keyword.Press Ctrl+. to trigger the Quick Actions and Refactorings menu.Select from the following two options: Select Convert to 'switch' statement. Select Convert to 'switch' expression.
Similar questions