Shiva Keerthi has Published 16 Articles

Java program to find Harmonic series

Shiva Keerthi

Shiva Keerthi

Updated on 26-Feb-2025 16:48:17

1K+ Views

The reciprocals of an arithmetic series without considering 0 is known as Harmonic series. If $a_{1}, a_{2}, a_{3}$… is arithmetic series then $\frac{1}{a1}$, $\frac{1}{a2}$, $\frac{1}{a3}$, … is the harmonic series. In this article, we will discuss how to implement a Java program to find the harmonic series. Harmonic Series For ... Read More

Java program to find sum of natural numbers using while loop

Shiva Keerthi

Shiva Keerthi

Updated on 05-Sep-2024 11:23:05

732 Views

The sum of natural numbers can be calculated using different Iterative Statements in Programming Languages. Iterative Statements are statements that execute a particular set of code lines until the condition in the loop statement fails. In this article, we will discuss how to calculate the sum of natural numbers using ... Read More

Java program to find cube root of a number using binary search

Shiva Keerthi

Shiva Keerthi

Updated on 30-Aug-2024 11:41:47

1K+ Views

The cube root of a number is an integer value when multiplied by itself thrice, giving the original number. In this article, we are going to write a Java program to find the cube root of a number using binary search. Finding the cube root of a number is one of ... Read More

Java program to find the smallest missing number

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2024 23:25:28

2K+ Views

The smallest missing number is the smallest number that is missing from a stream of elements or in an Array. The stream may or may not contain continuous elements. If the stream is continuous then the smallest missing number is nothing but the Smallest Missing Number in a stream. In ... Read More

Java Program to Get System IP Address in Windows and Linux Machine

Shiva Keerthi

Shiva Keerthi

Updated on 31-Jul-2024 17:49:04

3K+ Views

IP Address, also known as the Internet Protocol Address is a unique identifier that is assigned to a device in a network to identify the devices in the network and establish a connection between them. In this section, we will learn how to find the IP Address of a Windows ... Read More

Java program to find maximum odd number in array using stream and filter

Shiva Keerthi

Shiva Keerthi

Updated on 25-Jul-2024 19:32:19

2K+ Views

In this section, we are going to write a Java program to find maximum odd number in an Array using Stream and Filter. Odd numbers are the numbers which cannot be divided by 2 or these numbers give remainder as 1 when they are divided by 2. In other terms which ... Read More

Java Program to Find Area of circle Using Method Overloading

Shiva Keerthi

Shiva Keerthi

Updated on 09-Jul-2024 12:23:14

2K+ Views

We can calculate the area of the circle in Java using Method Overloading. “Method Overloading” is a feature in Java that allows one to write more than one method in the same class using the same method name. It will enable us to declare more than one method with the ... Read More

Java Program to Get the Union & Intersection of Two TreeSet

Shiva Keerthi

Shiva Keerthi

Updated on 26-Jun-2024 12:49:10

524 Views

TreeSet is a class that implements Set interface in Java. In TreeSet the elements are stored in sorted order as it is implemented internally using a sorted balanced tree called as binary search tree. The elements in the TreeSet are stored in ascending order by default. Union of sets contains ... Read More

Java Program to Get TreeMap Key, Value, or Entry Greater or Less than the Specified Value

Shiva Keerthi

Shiva Keerthi

Updated on 25-Jun-2024 14:53:17

1K+ Views

A TreeMap is a class provided by Java that implements Map Interface. It is a collection of key-value pairs and the key-value pairs in TreeMap are stored in sorted order based on key values. An Entry is defined as a key-value pair in a TreeMap. In this article, we ... Read More

Java Program to Find the Lost Number

Shiva Keerthi

Shiva Keerthi

Updated on 25-Jun-2024 14:37:14

553 Views

Lost Number is the number which is missing from a continuous stream of elements or in an Array. In this section, we will discuss the various approaches to find a lost number in a stream of elements using java programming language. Example for a lost number in an array ... Read More

Advertisements