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 

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

1 Expert Approved Answer
Step: 1 Unlock

The current ifstatement condition is ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!