Java programs

Remove duplicate element in an array in java

Let’s learn to remove duplicate element in an array in java. Remove duplicate element in an array in java To remove duplicate element from an…

Read More

Java program to find largest of three numbers

Let’s learn java program to find largest of three numbers. In java to find biggest number in java, comparison operator (>) is used. Comparison operator…

Read More

Java program to find LCM of two numbers

Let’s learn java program to find LCM of two numbers. How to find lcm of two numbers is one of the common interview question in…

Read More

Java program to add two numbers using method

Let’s learn java program to add two numbers using method. Java program to add two numbers using method Simple java program for adding two numbers…

Read More

Java program to check palindrome string using recursion

Let’s learn java program to check palindrome string using recursion. Java program to check palindrome string using recursion How to check if a string is…

Read More

Java program to check whether string is palindrome using library methods

Let’s learn java program to check whether string is palindrome using library methods. Java program to check whether string is palindrome using library methods Palindrome…

Read More

Java program to convert decimal number to binary & count number of 1s

Let’s learn java program to convert decimal number to binary & count number of 1s. Java program to convert decimal number to binary & count…

Read More

Java program to convert decimal to binary using toBinaryString and stack

Let’s learn java program to convert decimal to binary using toBinaryString and stack. Java program to convert decimal to binary using toBinaryString and stack Convert…

Read More

Java program to sort names in an alphabetical order

Let’s learn java program to sort names in an alphabetical order. Java program to sort names in an alphabetical order Sort names in alphabetical order…

Read More

Sort string array in case insensitive order and case sensitive order java

Let’s learn to sort string array in case insensitive order and case sensitive order java. Sort string array in case insensitive order and case sensitive…

Read More