题目内容

阅读以下代码,并将空处填写完整。import java.io.*;public class Test1 {public static void main(String args[])throws Exception{int a=4;BufferedReader br=new BufferedReader(new (System.in));System.out.println("请输入一个数字");String input= ;int b=Integer.parseInt(input);if(b>a){int sum=b/a;System.out.println(sum);}else{System.out.println("输入错误");}}}当输入的数字是8时,打印输出的结果是 。

查看答案
更多问题

下面哪些是常用的字符码表?(多选)

ASCII
B. UTF-8
C. ISO8859-1
D. GB2312

以下创建RandomAccessFile类实例对象的代码,哪些是正确的? (多选)

A. RandomAccessFile(new File(“D:\\itcast\\dir1\\test.java”),”rw”)
B. RandomAccessFile( “D:\\itcast\\dir1\\test.java”,”r”)
C. RandomAccessFile( “D:\\itcast\\dir1\\test.java”)
D. RandomAccessFile( “D:\\itcast\\dir1\\test.java”,”wr”)

以下哪些属于InputStream类的方法?(多选)

A. int read(byte[])
B. void flush()
C. void close()
D. available()

He asked me ()

A. if she will come
B. how many books I want to have
C. they would help us do it
D. what was wrong with me

答案查题题库