[Java] To use Arrays.asList function, must be careful…

Ref:

  1. java.util.Arrays.asList用法及注意事项

  2. java集合中部分异常java.lang.UnsupportedOperationException一个共同点

Because the ArrayList made by Arrays.asList function could not be modified anymore…

This entry was posted in Java. Bookmark the permalink.