//DDtwo31c.java  
//input character and get it's  unicode
import javax.swing.JOptionPane;

public class DDtwo31c
 {
  public static void main( String args[] ) {
// read in number as a string
char ch;
ch =JOptionPane.showInputDialog("Enter character").charAt(0);

JOptionPane.showMessageDialog(null," " + (int)ch,
      "The character " + ch +" has value" ,
      JOptionPane.INFORMATION_MESSAGE);
System.exit(0);
  }
}


