Check for Lower Case


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Check for Lower Case

  1. #1
    Join Date
    Nov 2002
    Posts
    18

    Check for Lower Case

    Hello everone,

    I have a little problem, I want to make a check for a lower case letter. Something like this:

    Code:
    If(name==loweCase)
    {
    ....blabla....
    ....blabla....
    }
    Thanks in advance,
    Wesley
    I like Java!
    Java is cool!

  2. #2
    Join Date
    Nov 2002
    Posts
    18
    Does no one knows?
    I like Java!
    Java is cool!

  3. #3
    Join Date
    Nov 2002
    Posts
    22
    Try this:
    Code:
    if(Character.isLowerCase(name)) {...}
    Your variable, name, must be a character (char). There are other methods for testing characters in the Character class and for testing Strings in the String class.

    Cheers
    Tom.

  4. #4
    Join Date
    Nov 2002
    Posts
    18

    Thumbs up Thanks

    Thank you,

    Greets Wesley
    I like Java!
    Java is cool!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center