I don't understand why this is not working for me.

When I ask to println it does show me the right answer, but when I try to MessageDialog, it dosnt!!

/* Generated by Together */

import javax.swing.*;
class ConvertDgrees
{
public static void main(String[]args)
{
String cel;
int celInt;
float fer;
cel=JOptionPane.showInputDialog("Celsius?");
celInt=Integer.parseInt(cel);
fer=celInt*9/5+32;


//System.out.println(fer);
JOptionPane.showMessageDialog(null,fer);
System.exit(0);
}
}