Learn how to handle nulls in ArrayList.addAll().
Search Results for: add
How to Intercept a Request and Add Headers in WebFlux
Explore different ways of intercepting and adding custom headers for both server web requests and web client requests in Spring WebFlux
Internet Address Resolution SPI in Java
Learn how Internet Address Resolution works in Java using the InetAddress API.
Add One Element to an Immutable List in Java
Learn how to add an element to an existing immutable List in Java.
Adding Elements to a Collection During Iteration
Explore several methods, including ListIterator (enhanced for looping with a copy) and Java 8 Streams, which allow you to add elements to a list during iteration in Java.
Find an Unique Email Address in a List
Explore various techniques for isolating unique email addresses from a Java list.
Add Camel Route at Runtime in Java
In this article, we learn how to implement dynamic routing in Apache Camel.
Mask an Email Address and Phone Number in Java
Explore masking of sensitive information for protecting user privacy and adhering to data security regulations.
Add Authorities as Custom Claims in JWT Access Tokens in Spring Authorization Server
Learn how to add resource owner authorities to a JWT access token in the Spring Authorization Server.
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.
Add Minutes to a Time String in Java
Learn how to add minutes to a time in the string format using the legacy Date API and the Date Time API.
Adding One Month to Current Date in Java
In this short tutorial, we discuss various methods of adding one month to the current date in Java. We cover using core Java methods as well as popular external libraries such as Joda-Time and Apache Commons Lang3.
Add a Checked Attribute to Input Conditionally in Thymeleaf
A quick and practical guide to conditionally adding a checked attribute to input in Thymeleaf.
Add Custom Headers to a Kafka Message
Learn how to use a Kafka producer to add custom headers in a Kafka message.
Add Field to an Existing MongoDB Bson Filter in Java
A quick and practical guide to adding a field to an existing MongoDB bson filter.
Validating IPv4 Address in Java
We may wish to validate IP addresses from our settings files or other inputs. We look at a few ways to do this using libraries and plain Java code.
Adding Parameters to Java HttpClient Requests
Different examples of HTTPClient core Java.
Add Header to Every Request in Postman
Explore the pre-request Script functionality of Postman to add HTTP headers to every request.
Get the IP Address of the Current Machine Using Java
Learn various methods to retrieve the local and public IP addresses of the current machine using Java.
Add Prefix to All Spring Boot Controllers
Look at different ways to use a common prefix for all Spring Boot controllers