Skip to content

Instantly share code, notes, and snippets.

@thejavalistener
Last active December 29, 2015 03:09
Show Gist options
  • Save thejavalistener/7605351 to your computer and use it in GitHub Desktop.
Save thejavalistener/7605351 to your computer and use it in GitHub Desktop.
package com.thejavalistener.util;
public class UString
{
// Retorna una cadena compuesta por n caracteres c.
public static String replicate(char c, int n)
{
String aux = "";
for(int i = 0; i<n; i++)
{
aux += c;
}
return aux;
}
// mas metodos ...
// :
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment