why am I getting the address to the list instead of its values?

前端 未结 0 1016
盖世英雄少女心
盖世英雄少女心 2021-02-12 11:52

I\'m creating an arrayList using an array like:

int[] ages = new int[]{32,26,37,32};
List myAges = new ArrayList(Arrays.asList(ages));
相关标签:
回答
  • 消灭零回复
提交回复
热议问题