Shiva Keerthi has Published 29 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 get Size of Directory

Shiva Keerthi

Shiva Keerthi

Updated on 28-Jan-2025 14:57:26

825 Views

A group of files combined stored at a common location is known as a “Directory”. A directory not only contains a group of files but also it can contain a group of other directories as well. A directory is also known as a “Folder”. Directories are a fundamental component of file ... Read More

Java program to find the last index of a particular word in a string

Shiva Keerthi

Shiva Keerthi

Updated on 04-Nov-2024 18:44:29

472 Views

In Java, a string is also an object. It is the object of the String class. A String is a sequence of characters. The last index of a particular word in a string is nothing but the position of the last occurrence of that word in the string. The index ... 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

645 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 components of a URL

Shiva Keerthi

Shiva Keerthi

Updated on 10-Aug-2024 00:02:25

2K+ Views

URL known as Uniform Resource Locator is a string used to specify the location of web resources like web pages, images, videos, and files on the internet. URL helps to easily access them and helps to retrieve the resources from the web servers. URL is also known as an Internet ... 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

Advertisements