## Java program to check for a valid IMEI number

What is IMEI number IMEI stands for International Mobile Equipment Identity is a 15 digit number associated with a mobile phone. Each mobile phone comes with an IMEI number which…

## How to swap two strings without using a third variable in java / Various methods to swap two strings without additional variable

Swapping strings Swapping two strings means interchanging their values with one another. Example, there are two string variables s1 and s2 with values s1 = "codippa.com" and s2 = "the…

## How to calculate prime factors of a number in java / Prime factorization in java

What is a prime factor A prime factor is made up of two terms : Factor and Prime Number. Prime Factor  = Factor + Prime Number A factor of a…

## How to check if a number belongs to Fibonacci series in java in Java

What is Fibonacci Series Fibonacci Series is a sequence of numbers in which each number(starting from the third number) is a sum of previous two numbers in the series and…

## How to swap two strings without using third variable in java / How to swap two strings without using a temporary variable in java

Problem Suppose there are 2 strings and their values need to be interchanged. String variables are declared as String stringOne = "This is "; String stringTwo = "codippa.com "; and…

## How to check for a Palindrome string using stack in java / Java program to find Palindrome of a string using stack

A string is said to be Palindrome which when reversed is the same as original string. In other words, when a string and its reversed form are same, the string…

## How to count frequency of digits in a given number in java / Java program to count the number of times each digit occurs in a number

This problem is pretty common in interviews and computer examinations. Candidate is required to write a program where a user enters any random integer and the program should display the digits and their count in the number. For Example, if the entered number is 74526429492, then frequency of 7 is 1, 4 is 3, 5 is 1, 6 is 1, 2 is 3, 9 is 2. In tabular format,

## How to calculate GCD in java / Various ways of GCD calculation in java / Java program to calculate GCD

What is GCD ?

GCD stands for Greatest Common Divisor. As its name suggests, a GCD of two or more numbers is the highest number that completely divides all those numbers. In other words, a number which divides two or more numbers with remainder as zero is called the GCD of those numbers.

## How to divide two numbers without using division (/) operator in java / How to find remainder of division of two numbers using minus (-) operator / Java program to find remainder of division using –

Suppose you want to divide a number a by another number b in java, you will use a / b. So simple, isn’t it. But what if you are required to determine the result by using only minus(-) operator, that is, without using division (/) operator. (more…)

Never Miss an article !

Get the new post delivered straight into your inbox, enter your email and hit the button

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

codippa will use the information you provide on this form to be in touch with you and to provide updates and marketing.