// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) import java.nio.file.* Files.lines(Paths.get("login.com")) .filter(line -> line.contains("java")) .map(line -> line[2..12]) .forEach(System.out::println)