伙计们,我只是在徘徊这些行之间有什么区别
Scanner file = new Scanner(new FileReader(new File(filePath)));
Scanner file = new Scanner(new File(filePath));
Scanner file = new Scanner(new FileReader(filePath));
当您将使用它们时,它们是什么类型的实例?还是他们都一样?
伙计们,我只是在徘徊这些行之间有什么区别
Scanner file = new Scanner(new FileReader(new File(filePath)));
Scanner file = new Scanner(new File(filePath));
Scanner file = new Scanner(new FileReader(filePath));
当您将使用它们时,它们是什么类型的实例?还是他们都一样?