Shiva Keerthi

Shiva Keerthi

16 Articles Published

Articles by Shiva Keerthi

Page 2 of 2

Java Program to Get System Motherboard Serial Number for Windows and Linux Machine

Shiva Keerthi
Shiva Keerthi
Updated on 24-Jun-2024 1K+ Views

Motherboard Serial Number is an id assigned to the motherboard of a computer. It is generally used to track the computer system and also to identify when the system is lost or stolen. In this section, we will be discussing different approaches to find the Motherboard Serial Number for Windows and Linux machines using Java programming language. Motherboard is a very crucial part of a computer. It is the backbone of the computer. All the components in a computer communicate through the motherboard. Motherboard helps in determining the factors like the amount of RAM we are going to ...

Read More

Java Program to Get First or Last Elements from HashSet

Shiva Keerthi
Shiva Keerthi
Updated on 24-Jun-2024 4K+ Views

In Java, HashSet is a class which implements Set Interface. HashSet is a collection of unique elements which doesn’t store or allow us to store duplicate elements. In this section, we will be discussing about different approaches in java to find the first element and last element of a HashSet using Java programming Language. The HashSet class in java is implemented using a hash table. It uses hash code to retrieve data quickly from the table in HashSet, the order of elements is not preserved i.e., it doesn’t store the elements in the order in which we add elements ...

Read More

Java Program to Find out the Area and Perimeter of Rectangle using Class Concept

Shiva Keerthi
Shiva Keerthi
Updated on 31-May-2024 8K+ Views

Java Language is one of the most used popular object - oriented programming language in present world. Class concept is one of the most important feature in Object - oriented languages. A Class is a like a blue print of an object. For example, when we want to build a house we first create a blue print of the house in other words we create a plan showing how we are going to build the house. Based on the plan we can create a number of houses. Similarly using class, we can create a number of objects. A class ...

Read More

Java Program to Get Year from Date

Shiva Keerthi
Shiva Keerthi
Updated on 11-Apr-2023 4K+ Views

In our day to day life, there is a huge data being generated in this real world. Among the information generated, Dates are generally used for various things such as scheduling an appointment, planning for day-to-day activities. While working with dates in programming, extracting the year from a specific date can be a common task. We can extract the Year from a particular Date using different in-built functions in Java programming language. In this article we will be discussing different approaches for extracting year from a particular date. Example Input: "13-07-2000" Output: 2000 Example Input: "1997/07/13" Output: 1997 ...

Read More

Java Program to Find G.C.D and L.C.M of Two Numbers Using Euclid\'s Algorithm

Shiva Keerthi
Shiva Keerthi
Updated on 10-Apr-2023 4K+ Views

Euclid’s Algorithm is an efficient algorithm which helps us to find G.C.D and L.C.M of two numbers. In this article, we are learning to write a Java program to find the G.C.D and L.C.M of two numbers using Euclid’s Algorithm. G.C.D. of two numbers G. C. D, known as Greatest Common Divisor is the highest common factor that divides the two given numbers exactly. Now let us look into an example and calculate the G.C.D of a two numbers. Factors − In mathematics, Factors are the numbers that can divide a given number. Ex − 8 can be divided ...

Read More

Java Program to Find Chromatic Index of Cyclic Graphs

Shiva Keerthi
Shiva Keerthi
Updated on 10-Apr-2023 239 Views

Chromatic Index of a graph is the parameter which indicates the minimum number of colours needed to colour all the edges of graph such that no two edges sharing the common vertex have same coloured edge. In this article, we will discuss how to find the chromatic index of cyclic graphs using the Java programming language. What is a Cyclic Graph? Cyclic Graph is a graph which consists of at least one cycle path in that particular graph. Cyclic path is a path that starts from a specific node and ends at the same node. What is Graph Colouring? ...

Read More
Showing 11–16 of 16 articles
« Prev 1 2 Next »
Advertisements