On each line, there is a certain pattern from left to right.
Because of the way Java works, we must produce lines top to bottom, and then left to right.
We could count the lines, from top to bottom, from one to five. Or we could count them, top to bottom, zero to four. Which one would make more sense to you, given the patterns you've seen?
Now within the loop that counts lines, you will know what line you're on. Given that you know what line you're on, could you write the code needed to generate and print the data on that line. Would another loop or two be helpful? :)
public class GrossmontBank
//class variables (global - accessible throughout this class)
//scanner object to be used throughout
private static Scanner input = new Scanner(System.in);