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


already answered, ignore.


10/1/2020 11:45:46 PM

Lia Costa ✨

1 Answer

New Answer


import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner myLetter=new Scanner(; System.out.print("Enter letter: "); char; 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... 😉