1 Reply Latest reply on Nov 19, 2006 9:08 PM by 807599

    how do i make unicode appear as a character

    807599
      say if i ask the user to input a value (e.g.97) how do i make that value in unicode.so i enter 97, it would output 'a' can someone post the code..thx
        • 1. Re: how do i make unicode appear as a character
          807599
          import java.io.*;
          
               public class ToChar {
          
                    public static void main(String[] argv) throws IOException {
          
                         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          
                         System.out.print("Enter a value: ");
                         String t = br.readLine();
          
                         System.out.println((char)Integer.parseInt(t.trim()));
          
                    }
               }