Snippets tagged “unmodifiable”
1 snippet uses this tag.
- How to convert array to list in JavaJava
To convert an array to a list in Java, you can use the Arrays.asList() method. This method returns a fixed-size list backed by the specified array. Here's an example: