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>d. select information is sent to the search engines database to be indexed. </span>
Answer: Safety effort of system is defines as the measures that are taken to provide and maintain the protection of the system.There are several methods ,tool and efforts made for the system security .Benefits of the system security are as follows:-
- Takes control over the hazardous situation and maintain the security
- System security will also increase the development of the system easily.
- Approach towards the analyzing of the system function
- Data, information and functions are safe from being detected in unauthorized way.
- Functions and implementation is made easy without the fear of getting attacked or hacked.