javax.swing.JOptionPane;的简单问题
import javax.swing.JOptionPane;public class wdzh{
public static void main (String[] args){
String str;
Float x=0.0f,y=0.0f;
str=JOptionPane.showInputDialog("请输入摄氏温度:");
x=float(str);
y=float((9/5)*x+32);
System.out.println("华摄氏温度:"+y);
}
}