Yes, we can replace a value in List using set method's in List (index based) and ListIterator(no index).
and here is code for it.
Sample :
import
java.util.ArrayList;
import
java.util.Arrays;
import java.util.List;
import
java.util.ListIterator;
public class ListUtils {
public static void main(String[]
args) {
// Example 1 : Common List
List
No comments:
Post a Comment