Question: java code for this? Write a program that prompts the user for input to produce the output similar to what is shown below, if user

java code for this?
Write a program that prompts the user for input to produce the output similar to what is shown below, if user input is 3. This diamond pattern is achieved through nested loop concept. There is no need to use any advanced techniques other than what we covered in class. Hint: Consider taking care of the space before you print the stars aligned as shown. Your program should be able to accept an integer n, then prints the picture of a diamond with 2 n -1 rows. 2 XXx X (2 n_1 times) 2 1 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
