/****************************************************************************** * This program reads bytes from STDIN and prints them in decimal format. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ import org.pureprogrammer.Utils; public class StreamIO3 { public static void main(String[] args) { int c; int count = 0; while ((c = Utils.getbyte(System.in)) != -1) { System.out.print(c + " "); ++count; if (count % 20 == 0) { System.out.println(); } } if (count % 20 != 0) { System.out.println(); } } }