题目内容

下列程序中,在X处应加入哪条语句,程序才能通过编译并正常运行?public class Foo{public static void main(String[] args) throws Exception{PrintWriter out = new PrintWriter(newjava.io.OutputStreamWriter(System.out),true);out.println("Hello");}}

A. import java.io.PrintWriter;
B. include java.io.PrintWriter;
C. import java.io.OutputStreamwriter;
D. include java.io.OutputStreamWriter;

查看答案
更多问题

下面哪个语句能够正确地创建一个InputStreamReader的实例?

A. new InputStreamReader(new FileInputStream("data"));
B. new InputStreamReader(new FileReader("data"));
C. new InputStreamReader(new BufferedReader("data"));
D. new InputStreamReader("data");
E. new InputStreamReader(System.in);

构造BufferedInputStream的合适参数是哪个?

A. BufferedInputStream
BufferedOutputStream
C. FileInputStream
D. FileOuterStream
E. File

Language Focus1. Use the following words and expressions to fill in the following blanks of the sentences. Change the form where necessary. (注意第一个字母不该大写的时候不要大写!)modelsubmitregardless ofwith good reasoncasualtrack alternativein place of1) I lost touch with most of my old school friends. With the help of internet I have finally _____ down most of them.2) Oh, My Goodness! Can’t you cook something else for a change? Shall we eat some meat ________ vegetables?3) He _____ his manners after his father’s. An Introduction to British Society & Culture 734) I’m really worried, for I’m supposed to _____ the thesis to my tutor this weekend. However, I haven’t written a single word.5) He talked and talked, ________ the fact that I had been yawning one after another.6) This kind of dress is only appropriate for _____ affairs.7) I do want to engage myself in some pleasure. But in an obscure and lifeless place like this, I have no ______ but to sleep.8) I’m not being unreasonable and I am angry with you _____.

write down the number in each sentence you hear.[音频]

答案查题题库