공부
[Java] print List<T>
승가비
2021. 12. 16. 00:58
728x90
private void print(List<String> list) {
System.out.println(Arrays.toString(list.toArray()));
}
https://stackoverflow.com/questions/10168066/how-to-print-out-all-the-elements-of-a-list-in-java
How to print out all the elements of a List in Java?
I am trying to print out all the elements of a List, however it is printing the pointer of the Object rather than the value. This is my printing code... for(int i=0;i<list.size();i++){ Sys...
stackoverflow.com
728x90