关于输入输出流
我用System,in.read();从键盘输入abcde
我在用
System,out.println去打印 结果等于97
我又用String类里的valueOf()去转换 可还是97 难到它把97变成了字符的97 ????
没办法 试了半天也没弄好
我想从键盘输入一串字符,然后在控制台上原样打印出来如何做啊
2006-11-24 20:39
import java.io.*;
public class M
{
public static void main(String args[])
{
try{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println(\"Please input the string:\");
System.out.print(br.readLine());
}
catch(Exception e) {}
}
}

2006-11-24 20:46
2006-11-24 20:48
2006-11-24 21:29
2006-11-24 22:04
2006-11-28 00:10
2006-11-28 09:20
有见地
2006-11-29 19:13