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:
option A
Explanation:
Option A.
With the use of Administrative simplification, we can transform all the paper work to electronic media such as electronic receipts or electronic mail. By shifting towards electronic means in Administrative simplification we are actually saving a lot of time by helping the human resource and from the laborious tasks of paper work and data management.
The management of electronic means is very easy and friendly, it is also a reason for implementing administration simplification as well.
Answer:
The correct answer to the following question will be "Adaptive Optics".
Explanation:
- AO (Adaptive Optics) is a technique used to enhance optical system performance by reducing the impact of incoming gravitational wave distortions by compressing a mirror to compensate for the distortion.
- It operates by calculating and compensating for defects in a wave-front with a system that corrects these errors as a deformable mirror or even a liquid crystal collection.
- It is a technique that can make it possible for a single ground-based telescope to get images as clear as that of the Hubble Space Telescope.
- Certain methods can achieve power resolution that exceeds the limit set by atmospheric distortion, for example, Aperture synthesis, Lucky imaging, and Speckle imaging.
Therefore, Adaptive Optics is the right answer.
Answer:
- Create partitions on each hard disk drives.
- Mount the partition created on each hard drive so they are accessible by the the operating system.
- Format the partitions created with a filesystem recognized by Linux.
Explanation:
Having purchased the two new SCSI hard disk drives with the controller cards for each and installed them properly, before using them for data storage and retrieval he must first use the fdisk command to create one or more partitions on each of the hard disk drives then mount any partitions created on the two hard drives so that they are accessible by the operating system before then proceeding to format any partitions created with a valid filesystem recognized by Linux.
Answer:
The restaurant chain system consist of restaurant id, name, zipcode, manager id, menu list.
Manager; manager id, name, phone no, and store.
Menu; menu id, type, items and description.
Items; item id, price and description.
Explanation:
Please look at the attachment for the E. R diagram.