/** * @(#)diamondShape.java * * * @author Dr. Sami Zhioua * @version 1.00 2009/12/13 */ import java.util.Scanner; public class diamondShape { public static void main(String [] args) { Scanner objScanner = new Scanner(System.in); System.out.println("Enter the width of the diamond you like"); int width = objScanner.nextInt(); // printing the upper triangle of the diamond int i = width/2, j = width/2; while(i>=0) { // printing the spaces for(int k = 0; k