阅读背景:

铸造数组。asList造成例外:java.util。数组$ArrayList不能被转换为java.util.ArrayList

来源:互联网 

I'm new to Java and am trying to understand why the first code snippet doesn't cause this exception but the second one does. Since a string array is passed into Arrays.asList in both cases, shouldn't both snippets produce an exception or not produce an exception? I'm new to Java and am trying to understand why




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: