Page 1 of 1

About Question enthuware.ocpjp.ii.v11.2.3337 :

Posted: Thu Aug 29, 2019 7:50 am
by tomex443
In code:

Code: Select all

String[] stra = Files.readLines(Paths.get(INPUT_FILE)); 
for(String s: stra) System.out.println(str);
Omit the fact that there is no such method: Files.readLines
The line: System.out.println(str);
Should be -> System.out.println(s);
If it is not intentional.

Re: About Question enthuware.ocpjp.ii.v11.2.3337 :

Posted: Thu Aug 29, 2019 8:15 am
by admin
Yes, it should be s instead of str but it is an incorrect option anyway.