Discuss the following:
Q: Create a java application that uses for loop, while loop, or do-while loop to print a square which has 10 X 10 lines of #, except lines 2, 4, and 6 which consist of * instead of # . Therefore the final output will look like this:
##########
**********
##########
**********
##########
**********
##########
##########
##########
##########