Exercise 1 Week 3 - Java Tutorial Multiple Strings While Loop

Опубликовано: 05 Март 2025
на канале: Red Stag Digital
9,868
27

For more: http://redstagdigital.com/

Next Video:    • Exercise 2 Week 3 - Java Tutorials Fo...  
Description of Problem:
Given a string s and a non-negative int n, return a larger string that is
n copies of the original string.
Objective:
Write a Java program called MultipleStrings that prompts the user to enter
two values, the first value is a string which you will call s, the second
value is an integer which you will call n. Generate a larger string that
consists of n copies of the original string. Print out the larger string.