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^^
__________________
轉型純愛中...- -+
|