How to calculate median from array values in java / Calculating median of integer array in java

What is Median ? Median of a sequence(or an array) of numbers is the middle element of the sequence when the total number of elements is odd or the average…

How to create a mirror image of a 2d array in java / How to create mirror image matrix in java / How to flip an array from left to right in java

Meaning Mirror image of a 2d array is another array whose columns are interchanged, meaning elements of first column become the elements of last column, elements of second column become…

How to calculate Brun’s Constant till a given number in java

What is Brun's constant Viggo Brun in 1919 devised a theorem which states that the sum of reciprocals of twin prime numbers reaches towards a value which is called Brun's…

How to convert a number to its Roman equivalent / Various ways to convert a number to Roman representation

What are Roman numbers

Roman numbers are used by Romans where numbers are represented by English letters. Each Roman symbol represents an equivalent decimal number. There are certain rules which need to be followed while writing Roman numbers which are explained next. Roman symbol chart is given below. (more…)

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 convert number to words in java / Java program to convert a number to its word representation

Problem Write a program in java which reads a number from the console and converts the number to its word form. Example, if the number entered is 23, the program…

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 check for a Duck number in java

Duck Number ? If a number contains one or more zeroes but does not start with a zero, it is called a Duck Number. Examples of Duck numbers are 2405,…

How to check for a Disarium number in java / Java program to check for a Disarium number

What is Disarium Number? Consider a number such as 135. Its digits are 1, 3 and 5 with 1 at position 1, 3 at position 2 and 5 at position…

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.