## 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…

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…

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…

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…

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…

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…

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…

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,

**What is GCD ?**

GCD stands for **G**reatest **C**ommon **D**ivisor. 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.

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**