Write a program in Java to create a pattern of a right angle triangle with numbers increasing by 1. The size of the triangle is determined by the number of rows specified by the user.
For example, if the user chooses to print a right triangle with 3 rows, the program should output:
1
2 3
4 5 6
If the user chooses to print a right triangle with 4 rows, the program should output:
1
2 3
4 5 6
7 8 9 10