Discover strategies to normalize lists of objects to strings in Java.
Search Results for: list
Storing Data Triple in a List in Java
Explore how to store triples in a list with examples.
Case-Insensitive Searching in ArrayList
Learn three approaches to perform case-insensitive searching in ArrayList.
Convert a List of Integers to a List of Strings
Learn three ways to convert a list of integers to a list of strings in Java.
Iterate Through Two ArrayLists Simultaneously
Java does not provide an explicit way to iterate over two lists at the same time. We look at some techniques and libraries that can help us correlate data between two collections according to index.
Inserting an Object in an ArrayList at a Specific Position
Learn how to add a new element at a specific position to an ArrayList.
Filling a List With All Enum Values in Java
Learn three approaches to get a List object that contains all instances of an enum
Finding Max Date in List Using Streams
Learn how to find the maximal date in a list of objects using Streams.
Writing a List of Strings Into a Text File
A quick and practical guide to writing a List of Strings into a text file.
Set vs List in Java
Explore the difference between a List and a Set in Java.
Convert a List to a Comma-Separated String
Learn four ways to convert a List of Strings to a comma-separated String.
List All Factors of a Number in Java
Learn how to find all factors of an integer using Java.
Difference Between Arrays.asList() and List.of()
Java provides some helper functions for us to build List objects from arrays. We look at how they work and the capabilities and limitations of the resulting List objects.
Replace Element at a Specific Index in a Java ArrayList
A quick and practical guide to replacing elements at a specific index in a Java ArrayList.
Arrays.asList() vs Collections.singletonList()
Learn about the Arrays.asList() method and the Collections.singletonList() method
Sort a List Alphabetically in Java
Learn how to sort elements in Java collections.
Reverse an ArrayList in Java
Learn how to reverse an ArrayList through examples
Sorting Objects in a List by Date
Learn how to sort a Java Collection by Date object in both ascending and descending modes.
Working With a List of Lists in Java
Take a closer look at the Java List of Lists data structure and explore some everyday operations
How to Store HashMap<String, ArrayList> Inside a List
Learn about storing HashMaps inside a List in Java.