LinkedList in Java with Example

linkedlist in Java

Hello Friends, In today session we are going to see LinkedList in Java collection, Methods of LinkedList, Hierarchy of LinkedList and Internal working of LinkedList etc. What is LinkedList? LinkedList is a class which implements …

Read more

Collection Framework in Java

Collection in Java

Hi Friends, In this tutorial we will discuss about Collection Framework In Java, different classes and Interfaces which are inside the collection framework, methods of List and will see sample code of List and ArrayList. …

Read more

Lambda Expression In Java

Lambda expression in Java

Hello Friends, Today we will discuss one more important concept of java which is “Lambda Expression” in Java. Lambda expression was added in Java 8. We are already known Java is an object oriented programming …

Read more

What is Token in java with Example?

What is token in java

In this post, we will learn What is Token in java? which is very important part of java programming. What is Token in Java? Tokens are smallest elements of a program that is identified by …

Read more

Generate Random Number and String in Java

How to generate random number and String in java

In this post we will see different methods of generate random number and String in Java. Generate Random Number in java Logic 1- Using Random class package demopkg; import java.util.Random; public class GenRandomNumber { public …

Read more

3 Ways of Reverse a Number in Java

In this Post, we will learn different ways to reverse a number in java. This is frequently asked question in automation testing  interviews. Logic 1: Reverse a Number in java using while loop package demopkg; …

Read more

Functional Interface in Java 8

Functional Interface

In this tutorial, we will discuss about Functional Interface which is the feature in Java 8. What is Functional Interface? An interface that contains only one abstract method is called Functional Interface. SAM – This …

Read more

How To Sum digits in a String in Java

How to sum digits in a String in Java

In this post, we will learn How to separate out digits from a String and How to sum those digits. Algorithm: Take a String. Convert it into array of characters Apply for loop till length …

Read more