package warmup2;

/*
 * Given a string and a non-negative int n, return a larger string that is n
 * copies of the original string.
 * 
 * stringTimes("Hi", 2) = "HiHi"
 * stringTimes("Hi", 3) = "HiHiHi"
 * stringTimes("Hi", 1) = "Hi"
 */

public class StringTimes {

	public static void main(String[] args) {
        StringTimes test = new StringTimes();
        System.out.println(test.stringTimes("Hi", 2));
        System.out.println(test.stringTimes("Hi", 3));
        System.out.println(test.stringTimes("Hi", 1));
	}
	
	public String stringTimes(String str, int n) {
		  String result = "";
		  
		  for (int i = 0; i < n; i++) {
		      result += str;
		  }
		  
		  return result;
	}
}

@@ -153,17 +153,19 @@
 Hi%22, 2) 
-=
+--%3E
  %22HiHi%22%0A
@@ -188,17 +188,19 @@
 Hi%22, 3) 
-=
+--%3E
  %22HiHiHi
@@ -225,17 +225,19 @@
 Hi%22, 1) 
-=
+--%3E
  %22Hi%22%0A *

Update StringTimes.java