/* Method2.java CIS 160 10/18/04 user-defined methods not returning values */ public class Method2 { public static void main(String[] args) { int i; for (i=1; i<=10; i++) { stars(i); System.out.println(); } System.out.println(); for (i=10; i>=1; i--) { stars(i); System.out.println(); } System.out.println(); for (i=1; i<=10; i++) { spaces(i-1); stars(11-i); System.out.println(); } System.out.println(); for (i=10; i>=1; i--) { spaces(i-1); stars(11-i); System.out.println(); } System.out.println(); } // this method displays n stars private static void stars(int n) { for (int i=0; i