Menu

[Solved]Java Write Switch Statement Checks Origletter Print Alpha B B Print Beta Character Print Q37079673

In Java Write a switch statement that checks origLetter. If ‘a’or ‘A’, print “Alpha”. If ‘b’ or ‘B’, print “Beta”. For any othercharacter, print “Unknown”. Use fall-through as appropriate. Endwith newline.

import java.util.Scanner;

public class ConvertToGreek {
   public static void main (String [] args) {
      char origLetter;

      origLetter = ‘a’;

      /* Your solution goes here */

   }
}

Expert Answer


Answer to In Java Write a switch statement that checks origLetter. If ‘a’ or ‘A’, print “Alpha”. If ‘b’ or ‘B’, print “Beta”. For … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *