Question: Exercise 2. Write a program that has a method called drawSquare (int size) that will print a square of an inputted symbol (e.g., # or

Exercise 2. Write a program that has a method called drawSquare (int size) that will print a square of an inputted symbol (e.g., # or +) of the given size. In the main method ask the user to enter a size and a symbol and then use these values to call the method from the main method. Include two different outputs showing two different square sizes and input types.

Exercise 2. Write a program that has a method called drawSquare (int

r----GRASP exec: java Lab8squaresizes Enter the size: 4 Enter a symbol: # jGRASP: operation complete

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!