标题:请高手指点.为什么这程序没反应??
取消只看楼主
依隅
Rank: 1
等 级:新手上路
帖 子:73
专家分:0
注 册:2005-10-17
 问题点数:0 回复次数:0 
请高手指点.为什么这程序没反应??

import java.awt.Container;
import javax.swing.*;
public class Maximun extends JApplet{
public void init()
{
String s1=JOptionPane.showInputDialog(
"enter first floating-point value");
String s2=JOptionPane.showInputDialog(
"enter second floating-point value");
String s3=JOptionPane.showInputDialog(
"enter third floating-point value");
double number1=Double.parseDouble(s1);
double number2=Double.parseDouble(s2);
double number3=Double.parseDouble(s3);
double max=maximun(number1,number2,number3);
JTextArea outputArea=new JTextArea();
outputArea.setText("number1: "+number1+"\nnumber2: "+number2+"\nnumber3: "+number3+"\nmaximum is : "+max);
Container container=getContentPane();
container.add(outputArea);
}
public double maximun(double x,double y,double z)
{
return Math.max(x,Math.max(y,x));

}

}

我是用JCreator Pro编译的.可运行没反应.请指点一 二.

搜索更多相关主题的帖子: public double import second 
2005-11-21 11:49



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




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

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