shahnawazm786 / Al_Khozaimi_Batch

Automation Batch
3 stars 1 forks source link

Write a program to check whether a entered character is lowercase ( a to z ) or uppercase ( A to Z ). #7

Open shahnawazm786 opened 2 years ago

shahnawazm786 commented 2 years ago

static void ignoreAlphabet(char alpha) { // A to Z if(alpha>='A' & alpha<='Z') { System.out.println("You entered Capital alphabet"); } else { System.out.println("Integer value"); } // a to z if(alpha>='a' & alpha<='z') { System.out.println("You entered small alphabet"); } else { System.out.println("You entered Integer"); } }