private static String removeFromString(String old, String frag)
{
int i = old.indexOf(frag);
while (i> -1) {
String rest = old.substring(i + frag.length());
System.out.println("rest = " + rest);
old = old.substring(0, i);
System.out.println("rest = " + old);
old = old + rest;
System.out.println("rest = " + old);
i = old.indexOf(frag);
System.out.println("i = "+ i);
}
return old;
}
Here the index of first occurrence is obtained outside the “while loop” and if this loop runs until index value is >-1. It extracts the rest of the characters other than “frag” from the index and all the characters for which the given set of characters are removed.
<span>Answer:
-Software architecture isn't about big design up front;
-Every software team needs to consider software architecture;
-The software architecture role is about coding, coaching and collaboration;
-You don't need to use UML;
-A good software architecture enables agility.</span>
Answer:
Fast-flux
Explanation:
The techniques that is used to shift the network without shutdown of website.
Answer:
A. delete the message without opening it.
Explanation:
Never open emails you don't know who sent it, it could be a hacker trying to get your personal/financial information.
Answer:
b. will be lower if consumers perceive mobile phones to be a necessity.
Explanation:
The price elasticity of demand is described as the percentage variation in the demanded quantity of service or goods divided by the change in the percentage of the price. And henceforth it describes the responsiveness of the demanded quantity to a price change. And now if the mobile phones are thought of as being the necessity then the price will increase as demand will increase, and hence the price elasticity of demand will be lower. And if there is an improvement in the production technology then the price will be lowered, and hence price elasticity of demand will be less as the change in the percentage of the price will be negative. And the exact definition of it as we have described above. Hence, b is correct options.