• Java ArrayList of objects
    25 January

    Create ArrayList of Objects in Java

    In this tutorial, we will learn how to create ArrayList of objects in Java. We will create a Book class with different properties and use it to create custom book objects when creating an ArrayList of objects. We will filter these book objects using certain criteria and add the book objects that meet the criteria […]

  • Split String by pipe in java
    15 January

    Split String by pipe(|) in java

    In this post, we will see how to split String by pipe in java. How to split String by pipe in java There are multiple ways to split String by pipe (|) in Java. Using split() method You can use String’s split() method to split String by pipe in java. Let’s say you want to […]

  • Initialize empty array in java
    01 January

    Initialize Empty Array in Java

    💡 Outline You can use below code to initialize empty array in java. // Initialize empty array int arr[] = {}; Or // Initialize empty array int array[] = new int[0]; Or // Initialize empty array int arr[] = new int[] {}; 1. Introduction In this post, we take a look on How to Initialize […]

  • Convert String to Array in java
    11 December

    Convert String to Array in Java

    When developing applications in Java there are many cases where we will find ourselves converting data from one type to the other. Developers must understand how this is done because it will enhance their system effectiveness leading to ease of use from different users interacting with the system. How to convert String to Array in […]

  • What is == in java
    01 December

    What is == in java

    In this tutorial, we will learn what is == in Java as it is a common lexeme that we will use while developing applications. The == lexeme can be confused with = which is another lexeme of the Java language and we will also learn in detail how the two differ to avoid issues such […]

  • Multiple classes in one file in Java
    18 October

    Multiple classes in one file in Java

    In this post, we will see how to have multiple classes in one file in java. [toc] Introduction You need to have any number of classes in a single Java file, but there is a restriction that you can declare only one Java class as public modifier with the main() method and declare (without public) […]

  • Find duplicate elements in the Stream
    17 October

    Java 8 – Find duplicate elements in Stream

    Introduction When working with a collection of elements in Java, it is very common to have duplicate elements, and Java provides different APIs that we can use to solve the problem. Java 8 Stream provides the functionality to perform aggregate operations on a collection, and one of the operations includes finding duplicate elements. In this […]

  • 17 October

    Java AES 256 Encryption Decryption Example

    Introduction Advanced encryption standard (AES) is the most secure encryption standard compared to RSA, which is vulnerable to brute force attacks. This is the main reason that AES was established by the National Institute of Standard and Technology (NIST) in 2001 and is used worldwide to date. In the previous post, we have seen how […]

  • 16 October

    Java AES Encryption Decryption Example

    Introduction AES stands for advanced encryption standard and is the most commonly used symmetric algorithm to encrypt sensitive data and can be used in both software and hardware. The AES algorithm is symmetric, meaning that it uses only one key for encryption and decryption, and due to this reason, the key must be shared between […]

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.