Learn how to handle nulls in ArrayList.addAll().
Search Results for: list
Converting Float ArrayList to Primitive Array in Java
Learn how to convert an ArrayList of wrapper classes into an array of primitives.
SkipList Implementation in Java
A quick and practical guide to implementing SkipList in Java.
Get List of Entity From Database in Hibernate
Explore a few techniques for retrieving lists of entities from a database using Hibernate
Add One Element to an Immutable List in Java
Learn how to add an element to an existing immutable List in Java.
Dynamically Managing Kafka Listeners in Spring Boot
Learn how to manage Kafka Listeners dynamically in Spring Boot.
Finding the Peak Elements of a List
Learn how to find the peak elements of a list in Java.
Modify and Print List Items With Java Streams
Learn to modify or transform a Java list and print its new elements.
Custom Event Handlers and Listeners in Netty
Learn to make a basic chat room using Netty. Key features include custom event handlers, server bootstrapping, and event listeners.
Gson TypeToken With Dynamic List Item Type
Learn how to convert a JSON array into an equivalent List with Gson.
Find an Unique Email Address in a List
Explore various techniques for isolating unique email addresses from a Java list.
Find the First Non-repeating Element of a List
Learn a few approaches to finding the first non-repeating element in a list, each with its advantages and considerations.
List vs. Set in @OneToMany JPA
Explore the differences between Lists and Sets in the context of entity relationships through examples.
Reset ListIterator to First Element of the List in Java
Explore the various ways to reset a ListIterator to the beginning of a list in Java
Call a Method on Each Element of a List in Java
Explore the methods and techniques available for calling a method on each list element.
Java 8 Stream Operation on the Empty List
Learn about Java 8 Stream operations on an empty List and understand the elegance and robustness of the Stream API.
Removing the Last Node in a Linked List
Learn how to remove the last node in a LinkedList in Java.
Check if List Contains at Least One Enum
Learn how to quickly check if List contains at least one enum value
Return Map Instead of List in Spring Data JPA
Learn how to use custom collections as return types in Spring Data JPA make the design more straightforward and less cluttered with mapping and filtering logic.
Sorting One List Based on Another List in Java
Explore various approaches for sorting a list based on the order of elements in another list.