1. Using the method System.arraycopy, copy an array of integers, numbers, to a new array named numbersCopy.
2. Repeat the previous exercise, but instead use the method Arrays.copyOf.
3. Consider a class that has an array, myStrings, of strings as a data field and the following accessor method:
public String[] getStrings()
{
return myStrings;
} // end getStrings
Explain why and how you would improve this definition.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here