What is copiedNums’ length after the code segment?int[] orig…
What is copiedNums’ length after the code segment?int[] originalNums = {1, 2, 3, 4};int[] copiedNums = {0, 0, 0};copiedNums = copy(originalNums, 2);public static int[] copy(int[] nums, int changeAmt) { int[] modifiedNums = new int[nums.length * changeAmt]; int index; for(index = 0; index
Read DetailsWhich XXX and YYY correctly output the smallest values? Arra…
Which XXX and YYY correctly output the smallest values? Array userVals contains 100 elements that are integers (which may be positive or negative). Choices are in the form XXX / YYY.// Determine smallest (min) valueint minVal;XXX for (i = 0; i
Read DetailsGiven two arrays, studentNames that maintains a list of stud…
Given two arrays, studentNames that maintains a list of student names, and studentScores that has a list of the scores for each student, which XXX and YYY prints out only the student names whose score is above 80? Choices are in the form XXX / YYY.String[] studentNames = new String[NUM_STUDENTS];int[] studentScores = new int[NUM_STUDENTS]; int i; for (i = 0; i 80) { System.out.print(YYY + ” “); }}
Read Details