Write a program that displays all the numbers from 100 to 1,000, ten per line, that are divisible by 5 and 6. Numbers are separated by exactly one space.
Breaking it down
Creating a range of numbers from one to a thousand and creating a Predicate that filter numbers that can be divided by 5 and 6. Next using Stream.collect will convert the stream to an arraylist. The second requirement was to display ten per line and to accomplish this we can split the ArrayList by 10 elements.