black

登录

单项选择题

下面的程序段创建了BufferedReader类的对象in,以便读取本机c盘my文件夹下的文件1.txt。File构造函数中正确的路径和文件名的表示是______。
File f = new File(填代码处);
file =new FileReader(f);
in=new BufferedReader(file);

A."./1.txt"
B."../my/1.txt"
C."c:\\my\\1.txt"
D."c:\ my\1.txt\
相关考题

单项选择题 下列程序段执行后的结果是()。 String s = new String("abcdefg"); for (int i=0; i<s.length______; i+=2) System.out.print(s.charAt(i));

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064