/* include program header here */ import javax.swing.*; public class StringFun { public static void main(String[] args) { String outputString; int inputInt; outputString = JOptionPane.showInputDialog("Enter an integer between 32 and 126:"); inputInt = Integer.parseInt(outputString); JOptionPane.showMessageDialog(null, "The unicode character for " + inputInt + " is: \'" + (char)inputInt + "\'"); //JOptionPane.showMessageDialog(null, "" + (char)32 + (char)82 + (char)111 + (char)99 + (char)107 + (char)115 + (char)33); System.exit(0); } }