Course contentsShow
Java
Lesson 1271 of 2,87028. Collections Utility ClassPro lesson

Collections.nCopies: Creating Immutable Repeated Lists

Generate an immutable list containing n copies of a specified element, useful for initialization and padding.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.