print pattern right hand pyramid using 2D array
I wanted to print a 2D array matrix with a pattern (right half pyramid) and each position will store a number that will increase as the position change.
What design-pattern would be more appropriate in this case scenario? What I would normally do is a bad design?
Let’s say I have the following classes:
What design-pattern would be more appropriate in this case scenario? What I am currently doing is a bad design?
Let’s say I have the following classes: