Core Java
-
Get the First and the Last Elements From an Array in Java
In this article, we will explore different approaches to getting the first and last elements from an array in Java.…
Read More » -
Conversion of InputStream to Stream in Java
In this article, we will explore different approaches for InputStream to Stream conversion in Java. 1. Introduction In Java, InputStream…
Read More » -
Jackson JsonNode to Java Collections
Java applications frequently interact with data in JSON (JavaScript Object Notation) format. Jackson Java Library provides tools for working with…
Read More » -
Convert Short to Byte Array
1. Introduction Converting a short value to a byte array is a common task when dealing with binary data. In…
Read More » -
Reactive Programming with Java Project Loom
The article argues that reactive programming and Project Loom are complementary tools for building concurrent applications in Java, rather than…
Read More » -
Check if Two Strings Are Permutations of Each Other in Java
In this article, we will explore different approaches to check if two strings are permutations of each other in Java.…
Read More » -
Check if a Number Is Power of 2 in Java
In this article, we will explore different approaches to check if a given number is a power of 2 in…
Read More » -
Using Java 8 Optionals: Perform Action Only If All Are Present
Java’s Optional class provides a container object which may or may not contain a non-null value. This is useful for…
Read More » -
Converting Between ZonedDateTime and Date in Java
In Java, managing date and time can involve converting between different types, such as ZonedDateTime and Date. This is particularly…
Read More »