hello,I have just started learning java and I was asked question I can not solve it.so I want someone expert in java to help me.
the question is:
Write a program that prints a diamond with a plus within it, given the height of the diamond. The outer-most shape is a normal
diamond shape, the middle row of the shape will be a row filled with stars (making the horizontal dash of the plus sign), and in
all the remaining rows the middle element of that row will have a star (making the vertical dash of the plus sign). Observe the
following examples.
For n=11, the output will look like:
*
***
* * *
* * *
* * *
***********
* * *
* * *
* * *
***
*
For n=7, the output will look like:
*
***
* * *
*******
* * *
***
*
For n=3, the output will look like:
*
***
*
For n=1, the output will look like:
*
Only consider odd sizes.

