How to convert a character to titlecase using case mapping information from the UnicodeData file in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {
  
    public static void main(String[] args) {
  
        char ch = 'i';
      
        char cht = Character.toTitleCase(ch);
         
        System.out.println(cht);
        
        System.out.println(Character.toTitleCase('$'));
    }
}
  
/*
run:
 
I
$
  
*/

 



answered Sep 17, 2016 by avibootz
...