<span>public String getemailssername (String aUser)
{
return aUser.substring(0, aUser.indexOf("@"));
}</span>
Number#4 = 55 ; start counting from 0
Answer:
Selection control structure
Explanation:
This is often referred to as if-conditional statement;
This condition tests for a condition and performs a sequence of operation depending on the result of the condition;
Take for instance, the following program written in python
<em>x = int(input("enter any number: "))</em>
<em>if x < 0:</em>
<em> print("Yes")</em>
<em>else</em>
<em> print("No")</em>
<em />
The above checks if the input number is less than 0,
If the condition is true, it prints Yes
If otherwise, it prints No
Answer: forwarding: move packets from router's input to appropriate router output
routing: determine route taken by packets from source to destination
Explanation:
The network layer refers to where connections take place in the internet communication process by sending packets of data between different networks.
The distinction between the forwarding function and the routing function performed in the network layer is that the forwarding function move packets from the input of the router to the appropriate router output while the routing function:m helps in knowing the routee taken by packets from the source to destination.