Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static String multiStr(int count, String str) { if (null == str || str.equals("") || count <= 0) { return ""; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < count; i++) sb.append(str); return sb.toString(); } }