Found 7442 Articles for Java

How To Check Whether a Number is Tcefrep Number or Not in Java?

Mr. Satyabrata
Updated on 09-Dec-2022 10:24:06

550 Views

A number is said to be a Tcefrep number, if the reverse of that number is equal to the sum of the proper divisors of the original number. For more clarification, we find the sum of the divisors of a number and find the reverse of the original number. If both the sum value and the reverse of the given number are the same then we can say that the given number is a Tcefrep number. Some examples of Tcefrep numbers are: 6, 498906, 20671542 ... etc. In this article, we will see how to check if a ... Read More

How To Check Whether a Number is Strontio Number or Not in Java?

Mr. Satyabrata
Updated on 09-Dec-2022 10:19:14

3K+ Views

A number is said to be a Strontio number, if we multiply 2 with a four-digit number then in the resultant number the tens place and hundreds place digits are the same. In simple terms, Strontio numbers are basically four-digit numbers. When we multiply 2 with it, it results in a number whose tens place and hundred places are exactly the same. Some examples of Strontio numbers are- 1111, 2222, 3333, 4444, 5555, 6666, 7777, 8888, 9999, 1001 ... etc. In this article, we will see how to check if a number is a strontio number by using Java ... Read More

How To Check Whether a Number is Pointer Prime Number or Not in Java?

Mr. Satyabrata
Updated on 09-Dec-2022 10:17:02

873 Views

A number is said to be a pointer prime number, if the sum of the product value of digits and the original prime number results in the next prime number. For more clarification, we take a prime number and multiply the digits with each other and add that multiplication value with the original number. After that if we get another prime number which is next to the original prime number. Then we can say that the number is a pointer prime number. Some examples of pointer prime numbers are: 23, 61, 1123, 1231 ... etc. In this article, ... Read More

How To Check Whether a Number is a Narcissistic Number or Not in Java?

Vivek Verma
Updated on 28-Aug-2025 15:47:12

3K+ Views

What is a Narcissistic Number? A number is said to be a Narcissistic number, only if the addition (or sum) of the value of each digit raised to the power of the total number of digits available in the original number is equal to the original number. Examples of narcissistic numbers, such as 153, 1634, 54748, etc. All single-digit numbers (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) are Narcissistic numbers because the power of 1 of any digit will be the digit itself. The following input and output scenarios will help you understand the problem and calculation ... Read More

How To Check Whether a Number is a Mersenne Number or Not in Java?

Vivek Verma
Updated on 23-Jun-2025 10:40:19

2K+ Views

What is a Mersenne Number? A Mersenne number is a positive integer that is obtained using the expression M(n)= 2n-1, where 'n' is an integer. If you keep any value of n (e.g., 0, 1, 2, 3) in the above expression, the result will be a Mersenne number. For example, consider n = 2 and calculate the expression 22 - 1. The result is 3, which is a Mersenne number. Not all Mersenne numbers are prime (e.g., 24 - 1 = 15) is a mersenne number, which is not prime. Here are some other examples of Mersenne numbers: ... Read More

How To Check Whether a Number is an Empire Number or Not in Java?

Vivek Verma
Updated on 13-Jun-2025 12:08:36

437 Views

What is Empire Number? A number is said to be an Empire number if it is a prime number, and when we reverse that number, we should get another prime number. For example, let's consider the number 17. We know that 17 is a prime number, and if we reverse this number, we get 71, which is also a prime number. Therefore, 17 is known as an empire number. Here are some other examples of prime numbers such as 11, 13, 17, etc. Input & Output Scenarios Below are a few input and output scenarios that help to understand the ... Read More

How To Get the Arc Length from Given Angle in Java?

Vivek Verma
Updated on 10-Jun-2025 18:22:52

536 Views

An arc of a circle is a segment or portion of the circumference of a circle. In other words, a curve between a pair of distinct points. The length of the arc refers to the length between two points along the arc (two points along a section of a circle or curve). It is a percentage of the circumference of the circle. When two lines intersect each other, the common meeting point is called a vertex and the geometrical figure between the two arms/lines is called an angle. Following diagram will help you to understand the arc and its length: ... Read More

How To Find Volume of Hemisphere in Java?

Vivek Verma
Updated on 05-Jun-2025 21:36:00

637 Views

A Hemisphere refers to the exact half of a sphere, which means if we divide a sphere into two equal parts, then we will get two hemispheres. The hemisphere is a three-dimensional geometrical shape that has one flat face. Following is the diagram of the Hemisphere, which gives an idea about the space it occupies and its radius that helps you to calculate the volume: Volume of the Hemisphere The volume of the hemisphere is the amount of space occupied by the hemisphere. It is half of the volume of the sphere with the same radius (r). Here is ... Read More

How To Find the Length of Hypotenuse in Java?

Vivek Verma
Updated on 10-Jun-2025 12:16:51

2K+ Views

Hypotenuse refers to the longest side, which is opposite to the right angle of a right-angled triangle. Following is the diagram of the Hypotenuse: Length of the Hypotenuse The length of the hypotenuse can be calculated using the Pythagorean theorem. According to it, the sum of the squares of the lengths of two sides is equal to the square of the length of the third side as follows: a2 + b2 = c2 c = √(a2 + b2) Where a, b, and c refer to the three sides of the right-angled triangle. You can write the above formula ... Read More

How To Find the Surface Area of Hemisphere in Java?

Mr. Satyabrata
Updated on 17-Nov-2022 11:55:07

338 Views

A hemisphere refers to the exact half of a sphere. Means if we divide a sphere in two equal parts then we will get two hemispheres. Hemisphere is a three-dimensional geometrical shape which has one flat face. There are many practical examples of hemispheres. The earth divided into 2 equal parts results 2 hemispheres i.e. Northern hemisphere and Southern hemisphere. The area occupied by the outer surface of a three-dimensional object is called the surface area. Formula to calculate surface area of hemisphere − Mathematically it can be represented as $$\mathrm{Surface \:Area \:= \:2\pi\:r^2}$$ Mathematically it can be represented as ... Read More

Advertisements