already answered, ignore. | Sololearn: Learn to code for FREE!

+4

already answered, ignore.

bug

10/1/2020 11:45:46 PM

Lia Costa ✨

1 Answer

New Answer

+4

import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner myLetter=new Scanner(System.in); System.out.print("Enter letter: "); char let=myLetter.next().charAt(0); switch(let) { case 'A': System.out.println("Capital letter A"); break; case 'a': System.out.println("Small letter a"); break; default: System.out.println("Not letter A"); break; } } } Have a look at the isLowerCase() method on java docs... 😉