java pyramid program with user input