import java.io.*;
public class ZhuanHuan {
public static void main(String args[])throws IOException{
BufferedReader buf;
System.out.println("请输入: ");
buf=new BufferedReader(new InputStreamReader(System.in));
String str=buf.readLine();
System.out.println("你输入的内容为:"+str);
int number = Integer.parseInt(str);
number=number+2;
System.out.println("转换后为:"+number);
}
} |
|