最简单的程序错误:见内 是的方法名写错了,readLine(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我给你改了一下import java.io.*;/* JHelloWorld @author zhf @version helloworld 1.0*/class JHelloWorld { public static void main(String[] args) { try { String str; DataInputStream stream=new DataInputStream(System.in); System.out.println("Please Enter Words:\n"); str=stream.readLine();//不能识别 System.out.println(str); stream.close(); } catch(IOException e) { } }}你的readline()应该这样写readLine(),“l”应为大写 如何获得线程的cpu占用率和内存消耗量 JAVA访问数据库显示信息 高分求一个Java基础知识 面试题 十万火急高分急求一个java gui通讯录程序,要求如下 想做一个java定时器,大家有这样的源代码吗?高分重谢 提问:构造代码块和构造函数哪个先执行? JAVA 日期转换 为什么这个程序画不出东东? 一个很紧迫的问题!!Help!! 关于怎样安全的端开的问题。。 !!!又来了,,,, import kingdom.tools.*出错?
/*
JHelloWorld
@author zhf
@version helloworld 1.0
*/
class JHelloWorld
{
public static void main(String[] args)
{
try
{
String str;
DataInputStream stream=new DataInputStream(System.in);
System.out.println("Please Enter Words:\n");
str=stream.readLine();//不能识别
System.out.println(str);
stream.close();
}
catch(IOException e)
{
}
}
}你的readline()应该这样写readLine(),“l”应为大写