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.
Answer:
Portfolio management is the correct option.
Explanation:
Project management software is that type of software that is used to accomplish the management related works such as planning, organizing, summarizing and many other works related to the management.
So, project management software is used for functioning the enterprise and portfolio management functions by which the employee combines and summarizes project information.
Answer:
boolean
Explanation:
while loops test to see if something is true or false to know when to continue the loop
I don't think so, it doesn't on my home phone.