--------------------configuration: <default> -------------------- c:\windows\temp\calculator.java:10: class tuo is public, should be declared in a file named tuo.java public class tuo ^ note: c:\windows\temp\calculator.java uses unchecked or unsafe operations. note: recompile with -xlint:unchecked for details. 1 error
1.输入3.1415926535897932384,按=号-〉结果是0.0 正在找原因 -> 输入之前先按一下“清除”再看看:“清除”-〉[数字]-〉按=号-〉运算符-〉按=号 exception in thread "awt-eventqueue-0 " java.lang.numberformatexception: empty string at sun.misc.floatingdecimal.readjavaformatstring(floatingdecimal.java:994) at java.lang.double.valueof(double.java:447) at test.calculator.yuns(calculator.java:324) at test.calculator$1jianting_dy.actionperformed(calculator.java:225) at javax.swing.abstractbutton.fireactionperformed(abstractbutton.java:1849) at javax.swing.abstractbutton$handler.actionperformed(abstractbutton.java:2169) at javax.swing.defaultbuttonmodel.fireactionperformed(defaultbuttonmodel.java:420) at javax.swing.defaultbuttonmodel.setpressed(defaultbuttonmodel.java:258) at javax.swing.plaf.basic.basicbuttonlistener.mousereleased(basicbuttonlistener.java:234) at java.awt.component.processmouseevent(component.java:5488) at javax.swing.jcomponent.processmouseevent(jcomponent.java:3126) at java.awt.component.processevent(component.java:5253) at java.awt.container.processevent(container.java:1966) at java.awt.component.dispatcheventimpl(component.java:3955) at java.awt.container.dispatcheventimpl(container.java:2024) at java.awt.component.dispatchevent(component.java:3803) at java.awt.lightweightdispatcher.retargetmouseevent(container.java:4212) at java.awt.lightweightdispatcher.processmouseevent(container.java:3892) at java.awt.lightweightdispatcher.dispatchevent(container.java:3822) at java.awt.container.dispatcheventimpl(container.java:2010) at java.awt.window.dispatcheventimpl(window.java:1774) at java.awt.component.dispatchevent(component.java:3803) at java.awt.eventqueue.dispatchevent(eventqueue.java:463) at java.awt.eventdispatchthread.pumponeeventforhierarchy(eventdispatchthread.java:242) at java.awt.eventdispatchthread.pumpeventsforhierarchy(eventdispatchthread.java:163) at java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:157) at java.awt.eventdispatchthread.pumpevents(eventdispatchthread.java:149) at java.awt.eventdispatchthread.run(eventdispatchthread.java:110)