作業
程式:
import javax.swing.JOptionPane;
public class Untitled1
{
public static void main(String[] args)
{
String myString=JOptionPane.showInputDialog("Enter a number: ");
int myNumber = Integer.parseInt(myString);
System.out.println("The number is "+ myNumber);
System.exit(0);
}
}
0 Comments:
发表评论
<< Home