Arrays.asList() Confusing source code

后端 未结 1 1068
忘掉有多难
忘掉有多难 2020-12-20 12:48

According to this source code for the Arrays class, the method asList passes an array to the constructor of new ArrayList. But there i

相关标签:
1条回答
  • 2020-12-20 13:37

    java.util.Arrays.ArrayList is a different class than java.util.ArrayList.

    0 讨论(0)
提交回复
热议问题