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 Murach's Java Servlets and JSP this week in the Servlets 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: 4523

Also asked and answered here

luck, db
There are no new questions, but there may be new answers.
subject: how to get a char to use .toUpperCase?
Similar Threads
Convert "\n" to char '\n'
simple concept using *= but ...
assignments and + operator
what is wrong with these two codes?
process special Word quote chartacters in jsp