A quick but comprehensive explanation of why there’s no SortedList in Java.
Search Results for: list
What’s the Difference Between Iterator and ListIterator?
Learn how to use Java’s Iterator and ListIterator and explore the key differences between them.
Convert JSON Array to Java List
Learn how to convert a JSON array to a Java List using the popular Gson and Jackson libraries.
How to Deep Copy an ArrayList in Java
A quick and practical guide to deep-copying an ArrayList in Java.
Convert a List of Strings to a List of Integers
Learn three ways of converting a list of strings to a list of integers.
Listing All AWS S3 Objects in a Bucket Using Java
Learn how to list all objects in an S3 bucket using AWS SDK V2 for Java.
Converting a Java List to a Json Array
Learn how to convert a Java List to a JSON array.
Get Unique Values From an ArrayList in Java
Explore a few techniques for obtaining unique values from an ArrayList in Java.
Set Default Value for Elements in List
Explore various approaches to initialize a Java List with default values.
Array vs. List Performance in Java
Explore the performance of arrays and lists in Java.
Check if a List Contains an Element From Another List in Java
Learn how to check if a list contains elements from another list in Java.
Converting List to Page Using Spring Data JPA
Learn how to convert a List into a Page using Spring Data JPA.
How to Persist a List of String in JPA?
Explore what kind of possibilities there are in JPA to store a list of strings of an entity.
Fix the JsonMappingException: Can not deserialize instance of java.util.ArrayList from Object value (token `JsonToken.START_OBJECT`)
Learn how to fix a common JsonMappingException when deserializing a JSON string.
Spring Kafka: Configure Multiple Listeners on Same Topic
Learn how to configure multiple listeners for the same Kafka topic using Spring Boot.
Moving Items Around in an Arraylist
Learn three different ways of moving items around in an ArrayList.
Finding All Duplicates in a List in Java
Learn different ways of extracting duplicate elements from a List in Java.
Combining Two Lists Into a Map in Java
Learn three ways to combine two given lists into a map through examples
Initialize an ArrayList with Zeroes or Null in Java
Learn the alternatives when we need to initialize an ArrayList with null or 0 values.
Java List Interface
Learn about the Java list interface, including core functions and concrete implementations.