Re: [問題] 寄陽救命呀:~~
※ 引述《Bting (En Taro Adun!!)》之銘言:
: import javax.swing.JOptionPane;
: public class countn {
Countn
: public static void main ( String args[] )
: {
: String input ;
: int inputno ;
: int result = 1;
: input = JOptionPane.showInputDialog(
: "enter nature number");
: inputno = Integer.parseInt(input);
: while( inputno > 1) {
: result = result * inputno;
: }
: JOptionPane.showMessageDialog( null, inputno, "testbar",
new Integer(inputno)
: JOptionPane.INFORMATION_MESSAGE);
: System.exit(0);
: }
: }
: 機陽幫我看看是哪裡寫錯了:~
: javac時一直指著JOptionPane.showMessageDialog的那個.
: 我不知道哪裡出錯了:~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.140.19
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):