Thread: char problem
View Single Post
  #1 (permalink)  
Old July 18th, 2003, 07:55 PM
roelbagao roelbagao is offline
Registered User
 
Join Date: Jul 2003
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default char problem

good day,

  I have a problem with this code

import java.lang.Character;
public class CharTest
{
    public static void main(String args[])
    {
        char c1='s';
        char c2='S';
        char c3=' ';
        c3 = toUpperCase(c1);
        System.out.println("c1 "+c3);
    }
}

all i wanted to do is to convert c1 to upper case, how can i do it?
tnx