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 */
}
}
Solution
import java.util.Scanner;public class ConvertToGreek { public static void main(String args[]){ char origLetter; origLetter = ‘a’;
OR
OR