import java.io.*;
public PrintNum
{
public static void main(String[] args)
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please input the num:");
int num=Interger.toString(br.readLine());
System.out.println("The num is:"+num);
}
}
当然,也可通过main()中的String[] args 参数传进来