- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Check whether a character is Lowercase or not in Java
To check whether a character is in Lowercase or not in Java, use the Character.isLowerCase() method.
We have a character to be checked.
char val = 'q';
Now let us use the Character.isLowerCase() method.
if (Character.isLowerCase(val)) { System.out.println("Character is in Lowercase!"); }else { System.out.println("Character is in Uppercase!"); }
Let us see the complete example now to check for Lowercase in Java.
Example
public class Demo { public static void main(String []args) { System.out.println("Checking for Lowercase character..."); char val = 'q'; System.out.println("Character: "+val); if (Character.isLowerCase(val)) { System.out.println("Character is in Lowercase!"); } else { System.out.println("Character is in Uppercase!"); } } }
Output
Checking for Lowercase character... Character: q Character is in Lowercase!
- Related Articles
- Check whether a character is Uppercase or not in Java
- Java Program to Check Whether a Character is Alphabet or Not
- Check whether the Unicode character is a lowercase letter in C#
- Haskell Program to Check Whether a Character is Alphabet or Not
- C++ Program to Check Whether a Character is Alphabet or Not
- Check whether a Stack is empty or not in Java
- Check whether a HashSet is empty or not in Java
- How to check whether a character is in the Alphabet or not in Golang?
- Check whether a NavigableMap empty or not in Java
- Check Whether a Number is a Coprime Number or Not in Java
- How to check whether a string is in lowercase or uppercase in R?
- Check whether the file is hidden or not in Java
- Check whether IdentityHashMap empty or not in Java?
- Check whether the entered value is a digit or not in Java
- Check whether the entered value is a letter or not in Java

Advertisements