Java Programming for Beginners: Repeating a string up to N characters long algorithm Java Functions

preview_player
Показать описание
In this case is prompted a problem which requires you to count how many time the first character will be repeated in N characters if the original string has to be repeated to fill that long.
Рекомендации по теме
Комментарии
Автор

Thanks very much mate, it's a brilliant solution !, you got a new subscriber !

yahia
Автор

I actually found a little problem here, which is if the function returns long value and N is large number, it takes a long time to execute, because of the loop ...

yahia
visit shbcf.ru