arrow_back Back to Notebook
java
java
January 10, 2019

How to create an empty list in Java

Lists in Java are pretty powerful and this is how you create them

For a list you will never populate with items

List<Integer> list = Collection.emptyList()

For a list you will add items to

List<Integer> list = new ArrayList<>()

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch