Collection Java Book

static boolean replaceAll(List list, T oldVal, T newVal)
Replaces all occurrences of one specified value in a list with another.