An overview of working with Lists in Groovy
Search Results for: list
Performance Comparison of Primitive Lists in Java
Compare the performance of some popular primitive list libraries in Java
Determine If All Elements Are the Same in a Java List
Learn different ways to determine if all elements in a list are equal
List of Primitive Integer Values in Java
Learn how to create a List of primitive integers using core Java and external libraries
List Files in a Directory in Java
Learn some different ways to list the files in a directory and subdirectories in Java.
Java ArrayList vs Vector
Learn about the differences between the Java ArrayList and Vector classes
Multi Dimensional ArrayList in Java
Learn how to create and work with multidimensional ArrayLists in Java.
Convert a Comma Separated String to a List in Java
Discover how to convert a comma separated string of integers or strings to a list in Java.
Intersection of Two Lists in Java
Learn how to retrieve the intersection of two Lists.
Ways to Iterate Over a List in Java
Review different ways to iterate through a List in Java
Converting a Collection to ArrayList in Java
A brief tutorial to building ArrayLists given a collection in Java.
Java 8 Streams: Find Items From One List Based on Values From Another List
Learn how to use data from one stream to find items in another
Spring Security – Whitelist IP Range
Learn how to whitelist an IP range in a Spring Security configuration.
ClassCastException: Arrays$ArrayList cannot be cast to ArrayList
Learn how to avoid a ClassCastException when working with various Java List implementations.
Java List Initialization in One Line
In this quick tutorial, we’ll investigate how can we initialize a List using one-liners.
Performance of contains() in a HashSet vs ArrayList
Learn about the performance differences between ArrayList.contains() and HashSet.contains()
Read a File into an ArrayList
A quick tutorial to reading files into ArrayLists in Java
Collections.emptyList() vs. New List Instance
Learn the differences between the Collections.emptyList() and a new list instance.
Remove All Occurrences of a Specific Value from a List
In this tutorial, we’ll see multiple solutions to efficiently removing all occurrences of a value, describing the pros and cons.
Add Multiple Items to an Java ArrayList
Explore different ways of adding multiple items to an already initialized ArrayList.