By executing below code why i get the java.lang.UnsupportedOperationException
Here is Code.
public static void main(String[] args) {
List<String> strs = Arrays.asList("One","Two","Three","Four");
Consumer<String> upperCaseConsumer = s -> strs.add(s.toUpperCase());
Consumer<String> printConsumer = s -> System.out.println(s);
strs.forEach(upperCaseConsumer);
strs.forEach(printConsumer);
}