The problem
Write a program to print 100 uppercase letters and then 100 single digits, printing ten per line.
Breaking it down
public static void main(String[] args) {
Random random = new Random();
random.ints(65, 90).limit(10)
.forEach(a -> System.out.println(Character.toString((char) a)));
Random random2 = new Random();
random2.ints(48, 57).limit(10)
.forEach(a -> System.out.println(Character.toString((char) a)));
}
Output
O
E
M
M
A
G
N
O
U
H
0
8
3
4
5
5
3
0
2
1