Use nested loops to assign values to the two dim array.
Type: Posts; User: Norm
Use nested loops to assign values to the two dim array.
Ok, that could work. Usually its row,column: [4][20]
You can't paint them until they exist. Where will they be created and saved so they can be painted?
I'm not sure how the Brick class would create instances of itself and put them at the top of the screen in rows.
The paint() method defintely should NOT create the bricks. It should call each of...
Which class and method is supposed to do that?
Sorry, without a complete program I can't compile, execute and test the code to see what the problem is.
You'll have to post some code that compiles, executes and shows the problem.
What problems are you having?
What is a Brick object supposed to do? Does it need setter methods?
Does it have a state?
BTW Java naming standards says methods should start with lowercase letters.
A starting point: define what data the brick needs to keep and what methods it needs to maintain that data.