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.
On this page of the site you can watch the video online Java Programming for Beginners: Repeating a string up to N characters long algorithm Java Functions with a duration of hours minute second in good quality, which was uploaded by the user Programming for Starters 01 January 1970, share the link with friends and acquaintances, this video has already been watched 20 times on youtube and it was liked by 1 viewers. Enjoy your viewing!