Games Animation Forum

查看單個文章
舊 01-05-03, 09:28 PM   #7
Shinji
Senior Gamer
鬼畜真嗣
 
註冊日期: Oct 2002
文章: 178
import java.awt.Graphics;
import javax.swing.*;

public class test extends JApplet {
public void init()
{String one;
one=JOptionPane.showInputDialog("Enter a Positive Integer");
int num1;
num1=Integer.parseInt(one);
JOptionPane.showMessageDialog(null, "the number is"+ num1,"Result",JOptionPane.INFORMATION_MESSAGE);

}
}

//同你整晒上面D SYTAX ERRORS…
//USE APPLETVIEWER TO VIEW
//THE PROGRAMMING STYLE MAYBE NOT GOOD
//U FINISH THE PRIME PART BY YOURSELF^^


__________________
轉型純愛中...- -+
Shinji 目前離線   回覆時引用此篇文章
 

返回主題: java問題救命!! (超緊急,緊急,緊急)