Removing the First Element of an Array 1. Overview In this tutorial, we’ll look at how to remove the first element of an array. In addition, we’ll also see how using data structures from the Java Collections Framework makes things even easier. 2. Using Arrays.copyOfRange() First of all, removing an element… Continue Reading java-array-remove-first-element

Batch Processing with Spring Cloud Data Flow Spring Cloud 1. Overview In the first article of the series, we introduced Spring Cloud Data Flow‘s architectural component and how to use it to create a streaming data pipeline. As opposed to a stream pipeline, where an unbounded amount of data is… Continue Reading spring-cloud-data-flow-batch-processing

Calling Default Serializer from Custom Serializer in Jackson 1. Introduction Serializing our complete data structure to JSON using an exact one-on-one representation of all the fields may not be appropriate sometimes or simply may not be what we want. Instead, we may want to create an extended or simplified view… Continue Reading jackson-call-default-serializer-from-custom-serializer

Removing Elements from Java Collections 1. Overview In this quick tutorial, we’re going to talk about four different ways to remove items from Java Collections that match certain predicates. We’ll naturally also look at some of the caveats. 2. Defining our Collection First, we’re going to illustrate two approaches that mutate the original… Continue Reading java-collection-remove-elements