Question: Java (Data Structure) Description: Create an application DiminishingSquares that accepts a command line integer argument n and then[outputs a square of asterisks of size nn,
Description: Create an application DiminishingSquares that accepts a command line integer argument n and then[outputs a "square" of asterisks of size nn, followed by another of size (n1)(n 1), and so on, stopping after it draws a 11 square. Your application should include a recursive drawSquare(int side) method that is called once by the main method and that handles all of the output. For example, if the argument to the application is 3 , the output would be
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
