What is the function of the set(int index, E element) and replaceAll(UnaryOperator<E> operator) methods of the List interface?
Answer: set() will replace the element at the specified position with the provided element. replaceAll() will apply the provided function to all elements of the list.
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.