DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  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!

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links