Hi everyone, I've only been learning Java for 6 weeks now thought I may as well ask! Would anyone be able to advise how to go about writing code for this problem
(a)Develop a JAVA method(subroutine) using nested loops called solidDiamond, so that when called it will generate the type of pattern shown below. It should have a parameter called size that specifies the number of asterisks appearing along any side of the pattern. Show how it would be called to generate the pattern below. (can't show it here as the format won't work)
That is 5 lines with differing numbers of * on them, the first line has one * the second three *, the middle line five * the forth line again three * then the last line again one *. The first and last have been centred so that when they are all put together they form the shape of a diamond.