How can we make multiple overlapping squares (of different lengths) with the same top left corner using a single method in Java?
For example if the arguments of the function are 5, 7 then the output should look like:
#######
# # #
# # #
# # #
##### #
# #
#######
If the arguments are 2, 4, 6 then the output should look like:
######
## # #
# # #
#### #
# #
######
I am able to draw single squares, and multiple squares separately, but facing problems with this.
Thanks.