星期日, 3月 12, 2006

Homework 03/06/2006

package Java_hw4;
import javax.swing.*;
public class Java_hw4
{
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);
}
}


0 Comments:

張貼留言

<< Home

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan License.