public static String dupString ( char c , int nCopies ) { char [ ] chars = new char [ nCopies ] ; Arrays . fill ( chars , c ) ; return new String ( chars ) ; }
Create a new string thats a n duplicate copies of c