Help with a problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Help with a problem

Hi, on Java, how would I be able to program a code that draws little circles wherever the mouse is clicked, I want all circles to remain on the screen, and whenever another circle is drawn, a line should be drawn to connect each subsequent one. Thanks

2nd Nov 2019, 8:55 AM
Jason Browning
2 Answers
+ 2
yes that would work, but I want to know how to hardcode it using arrays and loops, thats what im having trouble with?
3rd Nov 2019, 12:26 AM
Jason Browning
+ 2
oh ok, that helps alot, thank you so much :)
3rd Nov 2019, 1:43 AM
Jason Browning