This program allows the user to enter the number of rows and the symbol then the program displays a pyramid pattern java code to display pyramid pattern