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.
The user cannot close all the programs if he closes the open virtual desktop.
<h3>What are virtual desktops?</h3>
A virtual desktop is a computer operating system that does not run directly on the endpoint hardware from which a user accesses it. The desktop environment is separated from the physical device used to access it.
I call it a false desktop.
It is use to separate your work activities.
Therefore, the user cannot close all the programs if he closes the open virtual desktop.
learn more on virtual desktop here: brainly.com/question/14332029
#SPJ12
The resource allocation section of the test plan contains the information regarding the features to be tested in the test plan.
<h3>What is resource allocation?</h3>
The distribution and disbursement of the total disposable resources within an organization towards the different functions and processes in an organization is referred to as resource allocation.
The main functionality of a resource allocation section in a test plan is to portray the features of the test that will be conducted by the team of experts.
Hence, the functions of resource allocation in a test plan are as aforementioned.
Learn more about resource allocation here:
brainly.com/question/17837067
#SPJ1
The destination ip address when an ipv4 host sends a DHCPDISCOVER message Because a DHCP client does not have a valid IPv4 address, it must use a broadcast IP address of 255.255. 255.255 as the destination address to communicate with the DHCP server.
<h3>What does the DHCP server do when it receives the Dhcpdiscover message?</h3>
When the lease has expired, the client must start over with the DHCPDISCOVER process. The client ends the lease by sending a DHCPRELEASE message to the DHCP server. The server will then return the client's IP address to the available address pool.
<h3>What is a Dhcpdiscover message?</h3>
The DHCPDISCOVER message contains an identifier unique to the client (typically the MAC address). The message might also contain other requests, such as requested options (for example, subnet mask, domain name server, domain name, or static route). The message is sent out as a broadcast.
To learn more about DHCPDISCOVER, refer
brainly.com/question/14407739
#SPJ4
Answer:
There are two ways to insert the new column or row in the table.
Explanation:
<u>Method I</u>
i. Select the cell where you want to add a new row or column,
ii. Click on Home Tab
iii. Find insert button in Cells Group.
iv. Click on Insert Row or Insert Column button.
By following above mentioned steps we can add a row or column in Excel sheet.
<u>Method II</u>
i. Select the cell where you want to add a new row or column,
ii. Right Click on the selected Cell.
iii. Find Insert Button in drop down menu and Click on Insert.
iv. There are four options in POP menu, choose Entire Row or Entire Column to insert row or column.