aspose file tools*
The moose likes Beginning Java and the fly likes how to get a char to use .toUpperCase? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to get a char to use .toUpperCase?" Watch "how to get a char to use .toUpperCase?" New topic
Author

how to get a char to use .toUpperCase?

N Kol
Greenhorn

Joined: Sep 29, 2010
Posts: 9
Need some help here folks,

"This parameter must be accepted in upper or lower case"

the problem is the declaration is char packageType

Kurt Van Etten
Ranch Hand

Joined: Sep 07, 2010
Posts: 98
Hi,

The Character class has static .toUpperCase() and .toLowerCase() methods that you could use for this purpose.
Baichuan Huang
Greenhorn

Joined: Oct 04, 2010
Posts: 19
hi:


this can help you, thanks!
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

Also asked and answered here
http://www.coderanch.com/t/513131/java/java/difference-between-char-character-classes


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get a char to use .toUpperCase?