java假期练习程序.rar

时间:2012-04-30 08:20:47
【文件属性】:

文件名称:java假期练习程序.rar

文件大小:218KB

文件格式:RAR

更新时间:2012-04-30 08:20:47

java程序

import javax.swing.JOptionPane; public class Product{ public static void main(String args[]) {String firstNumber; String secondNumber; int number1=0; int number2=0; int product; firstNumber=JOptionPane.showInputDialog("输入乘数"); secondNumber=JOptionPane.showInputDialog("shurubeichengshu"); try{ number1=Integer.parseInt(firstNumber); number2=Integer.parseInt(secondNumber); } catch(NumberFormatException ex){ JOptionPane.showMessageDialog(null,"aaaaaaaaaaaaaaaa","xiaoxi",JOptionPane.PLAIN_MESSAGE); System.exit(0); } product=number1*number2; JOptionPane.showMessageDialog(null,number1+"*"+number2+"="+product,"jieguo",JOptionPane.PLAIN_MESSAGE); System.exit(0); } }


【文件预览】:
java假期练习程序
----SimpleFrame.java(807B)
----SimpleFrame.class(1KB)
----TestFrame.java(10KB)
----ch4()
--------TestIfElse.class(3KB)
--------TestIfElse$btnClearInputFieldActionEventHander.class(888B)
--------TestIfElse$btnShowActionEventHander.class(2KB)
--------TestIfElse$1.class(189B)
--------TestIfElse$btnClearActionEventHander.class(839B)
----MathCalc.java(6KB)
----ch10()
--------MathCalc$btnnumberEventHander.class(1KB)
--------MathCalc$btnAlcEventHander.class(1KB)
--------MathCalc.class(4KB)
--------MathCalc$button18aEventHander.class(950B)
--------MathCalc$btnAcceptEventHander.class(1KB)
--------MathCalc$button_xEventHander.class(1KB)
--------MathCalc$btnCEventHander.class(743B)
--------TestFrame.class(7KB)
--------MathCalc$1.class(185B)
----Product.java(735B)
----TestIfElse.java(4KB)
----Product.class(1KB)
----nuc.jpg(195KB)

网友评论