Write a program calledRange_array
.javathat has a method with one integer array and two integers position1 and position2 as parameters, where 0<><><=a.length-1. the="" method="" should="" construct="" and="" return="" an="" array="" that="" is="" identical="" to="" the="" given="" array,="" but="" with="" the="" values="" in="" position1="" through="" position2="">=a.length-1.>
The output should look exactly like what is pictured below please. The code must be editable, and all variables defined within please.
Extracted text: javalabs java Range_array given array: [10, 20, 30, 40, 50, 60, 100] Enter starting and ending positions of elements to be deleted: 1 3 Modified array is: [10, 50, 60, 100] → javalabs java Range_array given array: [10, 20, 30, 40, 50, 60, 100] Enter starting and ending positions of elements to be deleted: 0 2 Modified array is: [40, 50, 60, 100]