java

java

Java program to find union and intersection of two sorted Arrays

How to find the union and intersection of two sorted arrays in Java. Learn how to do this with example.

Read
java

Java program to print triangle or reverse triangle using any character

In this tutorial, we will show you how to print a Triangle in Java. We can print the Triangle using any character like *,&,$ etc.

Read
java

Java program to print a Rhombus pattern using star

How to print a Rhombus pattern using star, number or any character in Java. It will take the character and size of the rhombus and print the pattern.

Read
java

Java program to print multiplication table of a number

How to print a multiplication table in Java. This Java program will take one number as user input and print the multiplication table.

Read
java

Java program to find the counts of each character in a String

Java program to find the count of each character in a string. This program will take one string as input from the user, and print out the count of each character.

Read
java

Java Final - Final Variables, Final Methods and Final Class

final variables are variables that cannot be changed i.e. constant. It is really good practice to use final variables using uppercase letters and underscores as separator. Something as like below.

Read
java

Java program to check if a Matrix is Sparse Matrix or Dense Matrix

Learn how to check if a matrix is sparse matrix or dense matrix in Java. This program will take the matrix values as inputs from the user and print out if it is sparse or dense.

Read
java

Java Program to convert Decimal to Binary in 3 ways

Learn how to convert a decimal value to binary in Java in 3 different ways. We will do it by using an array of integers, using StringBuilder class and using toBinaryString.

Read
java

Java 8 Lambda Expression - Java Tutorial 2

Introduction to lambda expressions in Java. Learn how to use lambda expressions and what are its advantages in Java with examples.

Read
java

Java Tutorial 1 - Java Math Module

Introduction to Java Math module. Math class is available in java.lang package and it has two constants and more than 40 static methods to do some advanced mathematical operations easily.

Read