d盘上有个文件夹dir,dir中有个a.txt.以下代码执行后,会是怎样的结果?public class Test {public static void main(String[] args) throws IOException {String dirname = "d:\\dir\\a.txt";File f1 = new File(dirname);FileWriter fw = new FileWriter(f1,false);fw.write("我们都过得好,可是");fw.close();FileWriter fw2 = new FileWriter(f1,true);fw2.write("小猪过得好吗?");fw2.close();System.out.println("写入完毕!");}}
A. a.txt中文件内容为空
B. a.txt中文件内容为:我们都过得好,可是小猪过得好吗?
C. a.txt中文件内容为:我们都过得好,可是
D. a.txt中文件内容为:小猪过得好吗?
查看答案
____. I'll be lost in a cabin in the woods for the next… (来源:美剧《犯罪心理》)
A. Don't worry
B. Come forth
Oh, it gets better. Malpractice against a ____. (来源:美剧《美女上错身》)
A. psychologist
B. doctor
It's something that you grow out, sort of like pimples. You ____ it when you grow up. (来源于网络)
A. cherish
B. abandon
Don't let those haters ____ you. (来源于网络)
A. affect
B. dismay