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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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

how to get a char to use .toUpperCase?

N Kol

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

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

Joined: Oct 04, 2010
Posts: 19

this can help you, thanks!
Darryl Burke

Joined: May 03, 2008
Posts: 4684

Also asked and answered here

luck, db
There are no new questions, but there may be new answers.
Don't get me started about those stupid light bulbs.
subject: how to get a char to use .toUpperCase?