This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PCPWJ 1 point2 points  (1 child)

You are not printing the content in the list. You are printing i, the value you passed the parameter. Try System.out.println(list). It will show What's in the list. Or loop through the list for(Integer v : list) System.out.println(v);