java

Count the number of Carry Operations Challenge

Count the number of Carry Operations

This is a simple challenge I've seen recently. I've looked around the web and found that I didn't care for the Java implementations, so put my mind to work and came up with a new solution. int countCarryOperations(int a, int b) { int multipli…
List Intersection, Union, & Unique JAVA

List Intersection, Union, & Unique

Ever have two lists that you need to pull the unique elements from? Or need to pull the elements in both? Here is a ListUtils class for doing just those steps. package name.mymiller.extensions.utils; import java.util.ArrayList; import java.ut…
Pipeline Switches JAVA

Pipeline Switches

One of the things that make pipelines attract is the ability to create switches. Now my question to you is what if it isn't the data your processing that should determine if a switch pushes the data down an alternate pipeline? We have several…
Java Pipelines JAVA

Java Pipelines

Java streams introduced a new way to program for developers. Have a dataset and build a stream to filter, it maps it, and then collect it in the new form. This gave developers a powerful tool to use in development and data processing. I can't…
Not Returning Null JAVA

Not Returning Null

We all have done it, in fact, I'm in the process of changing my APIs over to not do.  Returning NULL for a return type.  After doing some work with streams, I see that return NULL often adds additional complexity to the code.  In this article…