java readLine()为什么会错误呢?
importjava.io.*;importjava.io.BufferedReader;importjava.io.InputStreamReader;publiccl...
import java.io.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class revenue {
public static void main(String[] args)
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String inputLine=in.readLine();
}
}
错误信息:
revenue.java:10: unreported exception java.io.IOException; must be caught or declared to be thrown
String inputLine=in.readLine(); 展开
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class revenue {
public static void main(String[] args)
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
String inputLine=in.readLine();
}
}
错误信息:
revenue.java:10: unreported exception java.io.IOException; must be caught or declared to be thrown
String inputLine=in.readLine(); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |