Question
In JavaFX. Must be in JavaFX I need to create a nested for loop that will create 6 rows and 6 columns of circles with
In JavaFX. Must be in JavaFX
I need to create a nested for loop that will create 6 rows and 6 columns of circles with a radius of 40 inside of a pane for a GUI.
should look like the right side of this image with all of the circles
This is the code that I have to far but is not working.
//instance variables
private Circle circle; private Circle[][] circleArray;
//Instantiate the two dimensional circleArray that contains //6 columns and 6 rows of circles (36 in total) for(int i = 0; i
Compiling error is happening here
//Use nested loop to instantiate the 6 columns by 6 rows of //Circle objects, add them inside the circleArrary for(int i = 0; i Color Circle Grids X PrimaryColor Black BackgroundColor White Stroke Width 1 X
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started