Question: Write a class TwoDArray.java with a main method that fills a two- dimensional array with asterisks*' The program creates one n x n two-dimensional array

Write a class TwoDArray.java with a main method that fills a two- dimensional array with asterisks"*' The program creates one n x n two-dimensional array of char. The value of n is read from the user. The program fills the two-dimensional array with asterisks to represent a letter x. The program also prints the content of the two dimensional array as an output. It should work with any integer value of n You have to use nested-for loops to fill and print the array for credit. You are allowed to use multiple nested for loops to solve the problem Extra credit (2 points): If you solve this problem using only one nested for loop, 2 points of extra credit will be given Here are the expected outputs with n-4 and n-5, respectively. Enter the value of n:4 Enter the value of n:5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
