package class4_3_Switch; import java.util.Scanner; public class WithoutSwitch { public static void main(String[] args) { // Random variables: int johnny5; //int 5johnny; doesn't compile. boolean isDone; boolean isProgramWorkingCorrectly; Scanner in = new Scanner(System.in); System.out.println("Choose an option"); System.out.println("Enter L for logarithm."); System.out.println("Enter M for maximum."); System.out.print("Enter an option: "); String word = in.next(); char letter = word.charAt(0); if(letter == 'l' || letter == 'L') { System.out.println("Computing Logarithm"); } else if (letter == 'm' || letter == 'M') { System.out.println("Computing Maximum"); } else { System.out.println("Unsupported: "+letter); } } }