Learn how to remove the last node in a LinkedList in Java.
Search Results for: list
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.
Convert a String to a List of Characters in Java
Learn how to convert a string into a list of charactеrs in Java.
Creating a Kafka Listener Using the Consumer API
Learn how to create a Kafka listener and consume messages from a topic using Kafka’s Consumer API.
Callbacks in ListenableFuture and CompletableFuture
Learn all about the callback mechanisms in ListenableFuture and CompletableFuture.
Add a List as Query Parameter in Jersey
Explore different ways to add a list as a query parameter when making requests using the Jersey client.
Convert From List of CompletableFuture to CompletableFuture List
Learn how to convert from a List of CompletableFuture to a CompletableFuture of List.
Joining a List<String> in Java With Commas and “and”
Explore an interesting string concatenation problem: joining strings in a more natural language-like manner.
Create an ArrayList with Multiple Object Types
Learn how to create an ArrayList with multiple object types in Java.
Converting HashMap Values to an ArrayList in Java
Explore several ways to convert a HashMap to an ArrayList in Java.
Check if a List Contains a String Element While Ignoring Case
Explore two approaches to performing a case-insensitive check to determine if a string list contains a specific string.
How To Convert Excel Data Into List Of Java Objects
Learn about the usage of several libraries, such as Apache POI, Poiji, FastExcel, and JExcelApi, to read and convert data from Excel files into Java objects.
Create List of Object From Another Type Using Java 8
Explore how to create a list of objects of a different type based on a given list.
Get Values and Keys as ArrayList From a HashMap
Explore how to obtain the key and value lists from a HashMap in Java.
Get the First n Elements of a List Into an Array
Learn the steps to retrieve the first n elements from a List and convert them into an array in Java.
Convert an ArrayList of String to a String Array in Java
Learn different approaches to convert a Java String ArrayList to a String array through examples.
Java Validation List Annotations
Explore the utility of the List variant of the annotations available under the package jakarta.validations.constraints.
Convert List to Long[] Array in Java
A quick and practical guide to converting List to Long[] Array in Java.