Home » Java » Core Java

Core Java

Set it up

In Java, we often have framework support for importing settings from the file system of our application. If we’re lucky, and we often are, these settings can be customised and overridden by system properties or environment variables. However, there are a couple of situations where this doesn’t quite apply: Very lightweight applications that use no frameworksLoading custom settings based on ...

Read More »

Java 8 Streams Filter With Multiple Conditions Examples

A quick guide to java 8 streams filtering concept with multiple conditions. This demonstrates how to use filter() in a more advanced way with examples 1. Overview In this tutorial, We’ll learn how to utilise stream filter() with several filter conditions (can be more than one condition). Normally, we apply a single condition to streams using filter() method with lambda ...

Read More »

Java – How to Convert Java Array to Iterable?

A quick guide to convert an array to iterable in java using Stream api with examples programs in two ways. 1. Overview In this tutorial, We will learn how to convert java array to iterable in different ways with example programs. First we will go thorough the basic one how to iterate over the array values. Next, how to convert ...

Read More »

Java 8 – Converting a List to String with Examples

A quick guide to convert List to String in java using different methods and apache commons api with examples. 1. Overview In this tutorial, we will learn how to convert List to String in java with example programs. This conversion is done with the simple steps with java api methods. First, we will understand how to make List to String ...

Read More »

Java 8 IntStream With Working Examples

A quick guide to understand primitive int representation of Stream as interface IntStream to support integer operations and with the useful examples. 1. Overview In this tutorial, We’ll learn how to use the IntStream in java 8 and it uses with example programs. For int primitives, the Java IntStream class is a specialization of the Stream interface. It’s a stream ...

Read More »

Java Convert File Contents to String

A quick guide on how to convert the file contents to String using Java Files api and with example programs. 1. Overview In this tutorial, you’ll learn how to convert File contents to String in java. If you are new to java 8, please read the how to read the file in java 8? we have already shown the different ways ...

Read More »

The Subs Bench

a.k.a. “How do I subclass a list element declared in my interface?” As covered by the rather awesome Ram on Baeldung, the Liskov substitution principle is important and is enforced by Java. In a current project, we’re looking at our strong types having both interfaces and concrete implementations. There’s a reason for this that’s NOT about making things mockable. (Making ...

Read More »

Apache Arrow on the JVM: Streaming Reads

Previously we wrote Arrow Data to a Stream. Now we shall read those data from a stream. Just like on the previous blog the we shall implement the Closeable interface. This is needed to close the RootAllocator and free-up memory. We shall pass a ReadableByteChannel and thus get the stream into read objects.  01 02 03 04 05 06 07 ...

Read More »