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.
Restrictive policy is a kind of policy calls for a firewall to contradict all traffic by default. The first rule denies all traffic on any service and using any port. To permit a specific type of traffic, a new rule must be placed ahead of the deny all rule. A firewall should enforce the overall policy recognized by the network administrator. Enforcement is controlled mainly over setting up packet filtering rules which is a rule base comprises a set of these rules.
A program that initializes a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading” are the usage of namespace std;int main().
<h3>What is a vector software program?</h3>
Vector images software program permits customers to layout and manages pc photos the usage of geometric and mathematical commands, instead of clicks and strokes as utilized in drawing software program. Vector photos created the usage of those applications may be scaled indefinitely with out dropping quality.
- #include
- #include
- #include
- the usage of namespace std;
- int main()
- ;
- vector::iterator it;
- for (it = vs.begin(); it != vs.end(); it++)
- string tmp;
- while (cin.get()!='n')
- for (it = vs.begin(); it != vs.end(); it++)
- }
Read more about the vector :
brainly.com/question/25705666
#SPJ1
Answer:
this is ethical behavior and could invade on Mike's privacy, if he did not give the former friend the rights to post that photo online
Explanation: