Here you can find the source of multiply(String original, int times)
public static String multiply(String original, int times)
//package com.java2s; public class Main { public static String multiply(String original, int times) { String s = ""; for (int i = 0; i < times; i++) { s += original;// w w w. ja v a 2 s . co m } return s; } }