import java.io.*;
import java.util.*;
public class ReadIn
{
public static void main(String args[])
{
int i=0;
char c;
InputStreamReader is=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(is);
StringTokenizer st;
try
{
System.out.print("int:");
System.out.flush();
String myline=br.readLine();
st=new StringTokenizer(myline);
i=Integer.parseInt(st.nextToken());
System.out.println("got:"+i);
}
catch (IOException ioe)
{
System.out.println("IO error:"+ioe);
}
}
};
posted on 2006-03-25 19:16
我的JAVA世界 阅读(1037)
评论(0) 编辑 收藏