标题:菜菜问题~
取消只看楼主
mido11
Rank: 1
等 级:新手上路
帖 子:23
专家分:0
注 册:2007-11-27
 问题点数:0 回复次数:0 
菜菜问题~
--------------------Configuration: <Default>--------------------
D:\java program\work21.java:12: cannot resolve symbol
symbol  : method showMessageDialog  (<*>,double,java.lang.String,int)
location: class javax.swing.JOptionPane
                JOptionPane.showMessageDialog(null,output,"nothing",JOptionPane.INFORMATION_MESSAGE);
                           ^
1 error

Process completed.





import javax.swing.JOptionPane;

public class work21{
    
    public static void main(String[] args){
        
        String tem = JOptionPane.showInputDialog(null,"huashi","nothing",JOptionPane.QUESTION_MESSAGE);
        double temp = Double.parseDouble(tem);
        
        double output = (5.0/9)*(temp-32);
        
        JOptionPane.showMessageDialog(null,output,"nothing",JOptionPane.INFORMATION_MESSAGE);


请问错什么```

[[it] 本帖最后由 mido11 于 2008-3-20 13:01 编辑 [/it]]
搜索更多相关主题的帖子: 菜菜 JOptionPane java symbol String 
2008-03-20 12:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-204371-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.686759 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved