// Allison Obourn
// CS 142, Spring 2024
// Lecture 15

// Prints out a line of two stars, a line of dashes and then a
// line of four stars and a line of 10 stars

import java.util.*;

public class PrintStars {
   public static void main(String[] args) {
      printStars(2);
      System.out.println("----");
      printStars(4);
      printStars(10);
   }
   
   // Prints out a line of stars the length of the passed in 
   // integer and then moves to a new line. 
   // WARNING: This is not good style code! We will fix it next class
   public static void printStars(int n) {
      if(n == 0) {
         System.out.println();
      } else if(n == 1) {
         System.out.println("*");
      } else {
         System.out.print("*"); // solve one small part of the problem
         printStars(n - 1); // ask someone else to solve the rest
      }
   }
}