Mega Code Archive

 
Categories / Java Book / 005 Collection
 

0338 Replace value in a list

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