A simple for loop adding the specified count to a String (or better yet a StringBuilder) would do the trick. See
The for Statement (The Java™ Tutorials > Learning the Java Language > Language...