Write a method called switchThem that accepts two integer arrays as parameters and switches the contents of the arrays. Take into account that the arrays may be of different sizes.
What will be an ideal response?
```
public void switchThem(int[] first, int[] second)
{
if (first.length == second.length)
{
// copy contents of first into temp
int [] temp = new int[first.length];
for (int i = 0; I < first.length; i++)
temp[i] = first[i];
//copy contents of second into first
for (int i = 0; I < first.length; i++)
first[i] = second[i];
//copy contents of temp into second
for (int i = 0; I < first.length; i++)
second[i] = temp[i];
}
else
System.out.println("Arrays are of different sizes");
}
```
You might also like to view...
____ uses influence and persuasion to deceive people by convincing them that the social engineer is someone he isn't, or by manipulation.?
A. ?Network enumeration B. ?Network penetration C. ?Social enumeration D. ?Social engineering
Use the captured data to explain the outcome of the exercise. Use the data to explain how Proxy ARP allowed PC4 to communicate with PC1. Include only relevant data from your saved output.
What will be an ideal response?