• 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. [crayon-61ebd287743f1496447652/] Introduction In this post, we take a look on How to Initialize empty array in Java. We will look at different ways to Initialize arrays in Java with dummy values or with prompted user inputs. Arrays in Java follow a different […]

  • 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. 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) for […]

  • 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 […]

  • 11 September

    RSA Encryption and Decryption in Java

    Introduction RSA is a short form for Rivest, Shamir, and Adleman, are the people who first publicly described it in 1977. It is an algorithm for asymmetric cryptography which involves the use of two keys. A public key, which can be known to anybody and can be used to encrypt messages, and verify signatures. A […]

  • 10 September

    How to remove element from Arraylist in java while iterating

    Introduction In this tutorial, you will learn how to remove element from Arraylist in java while iterating using different implementations provided by Java. It is necessary to understand the right way to remove items from a List because we might encounter errors in our programs if not done correctly. For example, If we try to […]

  • 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 […]