/****************************************************************************** * This program simply copies an input stream to the console line by line. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ import org.pureprogrammer.Utils; public class StreamIO2 { public static void main(String[] args) { String line; while ((line = Utils.getline()) != null) { System.out.println(line); } } }