Java Practice Program: diamond shape pattern
Write a Java program that prints a diamond shape pattern. This Java program prints a diamond shape pattern of stars (*). It consists of two main parts: The first loop prints the top half of the diamond (an upright pyramid). The second loop prints the…