import java.util.Scanner;
public class z {
public static void main(String[] args) {
String[] arr = {"me", "my", "mine", "i"};
whatIsThis(arr);
for (int k = 0; k < arr.length; k++) {
System.out.print(arr[k] + " ");
}
System.out.println();
}
public static void whatIsThis(String[] arr) {
arr = new String[5];
arr[0] = "I";
arr[2] = "loving";
}
}
Why does this code output "me my mine i" instead of "I my loving i" This is a question on my sample final exam and I want to make sure I understand.