Hey all, i'm new to java and i've been set a task... but i can't work this out for the life of me. i understand the concepts of loops, and the scanner class fine and i can implement them in basic programs. anyhow the problems is as follows:
The program displays a diamond pattern to the screen. The size of the pattern is determined by an integer value which is supplied by the user at runtime. The number must be in the range 1 to 10. If the number is outside the range the program will prompt the used to enter a valid number (see: example three). When a valid number is entered the pattern is generated, each side of the diamond has exactly the same number of * as the user entered, see blow for examples.
The user input should be via the Scanner class, you should not use either JOptionPane or Integer.parseInt() to solve this problem.
Your program should contain a while or do..while loop, as well and at least one nested for loop.
any help on this would be great

