题目内容
(请给出正确答案)
[主观题]
请在划线处编写适当语句,完成此程序使它能正确执行。 import java.io.*; public class Le
ap Year{ public static void main (String arget[]) throws IOException{ InputStreamReader ir; BufferedReader in; ir=new Input Stream Reader (System.in); in=new BufferedReader(ir); System.out.println(“输入年份是:”): String s=in.readLine(); int year=Integer.parseInt(s); { System.out.println(" "+ year+“年是闰年。”); } else { System.out.println(" " +year+“年不是闰年。”); } } }
查看答案
如果结果不匹配,请 联系老师 获取答案