0
Help with Java Methods
please help and explain if you can, I dont get it: create a method called returnIntFrom that takes two arguments: -an array of ints -An int that represents the index of value to be returned Method should return a single integer in the specific index
3 Answers
+ 1
thank you so much guys
0
public static Integer getElement(int[] arr, int index){
return arr!=null && index>=0 && index<arr.length ? arr[index]:null;
}