Given the code fragment:
public static void main (String[] args) throws IOException {
BufferedReader brCopy = null;
try (BufferedReader br = new BufferedReader (new FileReader(''employee.txt''))) { //
line n1
br.lines().forEach(c -> System.out.println(c));
brCopy = br;//line n2
}
brCopy.ready(); //line n3;
}
Assume that the ready method of the BufferedReader, when called on a closed BufferedReader, throws an exception, and employee.txt is accessible and contains valid text.
What is the result?
Deangelo
1 months agoEdelmira
1 months agoInes
2 days agoTemeka
15 days agoEmily
1 months agoFrank
2 months agoCarla
2 days agoJolene
6 days agoBarrett
13 days agoTalia
19 days agoCarissa
1 months agoAvery
1 months agoAndree
2 months agoTeri
4 days agoKirk
19 days agoBong
1 months agoNoel
1 months agoKanisha
2 months agoZana
2 months agoKanisha
3 months ago