System.in.read()
是要抛出IOException的,你应该捕获并处理这个异常。你最后把出错信息贴上来吧,这样大家能看得清楚一点。

解决方案 »

  1.   

    a=System.in.read(); 
    c=System.in.read(); 
    ~~~~~~~~~~~~~~~~~~~~~~~~~`c = (char)System.in.read();
    b=System.in.read();  
      

  2.   

    该用try捕获IOException。
    System.in.read()返回为int型,要转换。
      

  3.   

    1:"Untitled1.java": Error #: 360 : unreported exception: java.io.IOException; must be caught or declared to be thrown at line 10, column 15
    2:"Untitled1.java": Error #: 360 : unreported exception: java.io.IOException; must be caught or declared to be thrown at line 11, column 35
    3:"Untitled1.java": Error #: 360 : unreported exception: java.io.IOException; must be caught or declared to be thrown at line 12, column 15
    好象就是这些了……
      

  4.   

    对了。各位所说的TRY是怎么用的请告诉我不胜感激~
      

  5.   

    try
    {
       ........;
    }
    catch(IOException e)
    {
       e.printStackTrace();
    }
      

  6.   

    try...catch...的用法最好还是自己翻翻书,以便于理解它的具体意思。
      

  7.   

    顺便问问。JSP的效果能不能在。我的电脑上看到?还是要服务器的支持?