| 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: 4203
|
|
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.
|
 |
 |
|
|
subject: how to get a char to use .toUpperCase?
|
|
|