// Brett Wortzman // Section: AZ // TA: Grace Hopper // Date: 3/28/18 // Assignment 0 // // This is a program to draw two diamonds and an X. // // This version uses better style, but still has some redundancy. public class Figure2 { public static void main(String[] args) { drawDiamond(); System.out.println(); drawDiamond(); System.out.println(); drawX(); } public static void drawDiamond() { System.out.println(" /\\"); System.out.println(" / \\"); System.out.println("/ \\"); System.out.println("\\ /"); System.out.println(" \\ /"); System.out.println(" \\/"); } public static void drawX() { System.out.println("\\ /"); System.out.println(" \\ /"); System.out.println(" \\/"); System.out.println(" /\\"); System.out.println(" / \\"); System.out.println("/ \\"); } }