SyntaxFix
Write A Post
Hire A Developer
Questions
When using Java8 it would be more easier and a single liner only.
gunList.get(2).getBullets().forEach(n -> System.out.println(n));