Quantcast
Channel: Creating a list with repeating element - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Creating a list with repeating element

$
0
0

Is there an utility method in Java that generates a list or array of a specified length with all elements equal to a specified value (e.g ["foo", "foo", "foo", "foo", "foo"])?


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images