网站标题栏怎么做/100个商业经典案例
Scanner sc=new Scanner(new FileReader("D:\\text.txt"));
String line=null;
while((sc.hasNextLine()&&(line=sc.nextLine())!=null)){if(!sc.hasNextLine())System.out.println(line);
}
Scanner sc=new Scanner(new FileReader("D:\\text.txt"));
String line=null;
while((sc.hasNextLine()&&(line=sc.nextLine())!=null)){if(!sc.hasNextLine())System.out.println(line);
}