Basics_Que_11

Home / Java Practice Question / Basics_Que_11

Basics_Que_11


Write a program to check whether a character is alphabet or not.

Program : 

public class Loop {

public static boolean isCheck(char ch){

if(ch>='a' && ch<='z'){
return true;
}else if(ch>='A' && ch<='B'){
return true;
}else{
return false;
}
}

}