public static void main(String[] args)
{
Scanner keyboard = new Scanner (System.in);
float x;
int y;
char ch1, ch2;
String name;
String input;
input = JOptionPane.showInputDialog("Enter a number: "); // int y
y = Integer.parseInt(input);
name = JOptionPane.showInputDialog("Enter a name: "); // String name
input = JOptionPane.showInputDialog("Enter a floating point value: "); // Float x
x = Float.parseFloat(input);
JOptionPane.showMessageDialog(null, "ch1 = " + ch1 + "y = " + y + "\nName is " + name + "\nx = " + x);
System.exit(0);
// output
}