Write a filter TenPerLine that reads from standard input a sequence of integers between 0 and 99

Question:

Write a filter TenPerLine that reads from standard input a sequence of integers between 0 and 99 and prints them back, 10 integers per line, with columns aligned. Then write a program RandomIntSeq that takes two integer commandline arguments m and n and prints n random integers between 0 and m-1. Test your programs with the command java RandomIntSeq 200 100 | java TenPerLine.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: