Question: Write a java program that takes input from the command line arguments and outputs a shape of the specified size. Command usage: java Shapes .
Write a java program that takes input from the command line arguments and outputs a shape of the specified size. Command usage: "java Shapes
Please let the output as the picture below:

$ java shapes circle 2 XXX XXX XX XX xxx XXX XXXXX $ java Shapes circle 3 XXXXXXX xxx XXX XX XX XX XX XX XX XXX XXX XXXXXXX $ java Shapes circle 7 XXXXXXXXXXX XXXX XXXX XXX XXX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX xx xxx XXX XXXX XXXX XXXXXXXXXXX
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
