Generating Pascal's Triangle

Write a class named PascalTriangleGenerator whose main method prompts the user for a number of rows of Pascal's triangle to generate, and then displays this many rows of Pascal's triangle. The values in each row should be found using the method of successive multiplications described here.

Sample run:

This program prints out Pascal's triangle up to a given number of rows.
-----------------------------------------------------------------------
How many rows would you like to see displayed? 
10
1  
1  1  
1  2  1  
1  3  3  1  
1  4  6  4  1  
1  5  10  10  5  1  
1  6  15  20  15  6  1  
1  7  21  35  35  21  7  1  
1  8  28  56  70  56  28  8  1  
1  9  36  84  126  126  84  36  9  1  
1  10  45  120  210  252  210  120  45  10  1  

Also write a class named EvenOddTriangleGenerator that does the exact same thing as the program above, but instead of printing the numerical values in each row of Pascal's triangle, print either an 'E' if the corresponding value was even and an 'O' if the value was odd, without any spaces in between. You may be surprised at what you see!