Answer:
public static String repeat(String text, int repeatCount) {
if(repeatCount < 0) {
throw new IllegalArgumentException("repeat count should be either 0 or a positive value");
}
if(repeatCount == 0) {
return "";
} else {
return text + repeat(text, repeatCount-1);
}
}
Explanation:
Here repeatCount is an int value.
at first we will check if repeatCount is non negative number and if it is code will throw exception.
If the value is 0 then we will return ""
If the value is >0 then recursive function is called again untill the repeatCount value is 0.
Answer:
Sorry, we picked up your question late. There are a lot of questions, and every now and then some misses out. And I am sure you will understand. However, the cool thing is your answers are correct. I read the complete article on young adults or teenagers and found the same. And I am sure you will agree with the facts, and use its best meaning in your own life. I am, however, listing below all the answers for your complete satisfaction. And I congratulate you, you are up with the correct list of answers.
The answer to the First question is:
B. the description of how influencers follow young social media users"
Second question answer is
C. Andrew Yang
And the third question answer is:
C. Teens and young adults consume and spread news information through social media.
And I am sure you must have liked this article. Article reading is a good habit. You should always start a day by reading one article online or in newspaper.
Explanation:
Please check the answer section.+
No it is not. it's quite simple when you get the hang of it