lib 1003724 import org.apache.commons.io.input.ReversedLinesFileReader; static LS lastNLines(File f, int n) ctex { if (f == null) ret emptyList(); try { ReversedLinesFileReader r = new(f); try { new LS l; while(l(l) < n) { S s = r.readLine(); if (s == null) break; l.add(s); } ret reversedList(l); } finally { r.close(); } } catch (FileNotFoundException e) { ret emptyList(); } } static L lastNLines(int n, File f) { ret lastNLines(f, n); }