Last active
December 29, 2015 03:09
-
-
Save thejavalistener/7605351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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