Question: Our friend River wrote the code shown with the intention of printing out a message to the user if the variable letter was a
Our friend River wrote the code shown with the intention of printing out a message to the user if the variable letter was a lowercase letter. However, upon testing it with the character 'A', the code printed out that this was a lowercase letter! What should River do to fix the code? 1234567890 1- public class FixIf { 7+ 10 11 } public static void main (String[] args) { char letter 'A'; } if ((letter >= 'a') || (letter
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
The current ifstatement condition is ... View full answer
Get step-by-step solutions from verified subject matter experts
