import javax.swing.JOptionPane;
public class work
{
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);
}
}
結果:
1234567890
0 Comments:
張貼留言
<< Home