当前位置: 代码迷 >> Java相关 >> 出现必须对其进行捕捉或声明以抛出
  详细解决方案

出现必须对其进行捕捉或声明以抛出

热度:69   发布时间:2011-11-25 09:45:31.0
出现必须对其进行捕捉或声明以抛出
程序代码:
class inputChar
{
    public static void main(String args[])
    {
        byte buf[]=new byte [100];
        System.in.read(buf);
        String s=new String(buf,0);
        System.out.println(s);
    }
}
搜索更多相关的解决方案: 声明  

----------------解决方案--------------------------------------------------------
  相关解决方案