单项选择题
下面的程序段创建了BufferedReader类的对象in,以便读取本机c盘my文件夹下的文件1.txt。File构造函数中正确的路径和文件名的表示是______。 File f = new File(填代码处); file =new FileReader(f); in=new BufferedReader(file);
单项选择题 下列程序段执行后的结果是()。 String s = new String("abcdefg"); for (int i=0; i<s.length______; i+=2) System.out.print(s.charAt(i));