Shiva Keerthi has Published 29 Articles

Java Program to Get Elements by Index from LinkedHashSet

Shiva Keerthi

Shiva Keerthi

Updated on 03-Jul-2024 16:17:11

2K+ Views

LinkedHashSet is a class provided by Java which Implements Set Interface. LinkedHashSet is implemented as a hash table with a linked list running through it, so it is more efficient that HashSet and also maintains orders. It is useful when you need a collection that maintains order and does not ... Read More

Java Program to Get System MAC Address of a Windows and Linux Machine

Shiva Keerthi

Shiva Keerthi

Updated on 26-Jun-2024 17:39:44

3K+ Views

Computers can connect to a network and communicate with other devices using a hardware or software component known as Network Interface Controller (NIC). NIC helps in creating a layer which helps in transmitting and receiving data between two devices. MAC address known as Media Access Control address is a unique ... Read More

Java Program to Get the Size of Given File in Bytes, KiloBytes and MegaBytes

Shiva Keerthi

Shiva Keerthi

Updated on 26-Jun-2024 12:51:24

4K+ Views

Size of a file is the amount of storage space occupied by that particular file on a particular storage device such as a hard drive. Size of a file is measured in terms of bytes. In this section, we will be discussing how to implement a java program to get ... Read More

Java Program to Get the Union & Intersection of Two TreeSet

Shiva Keerthi

Shiva Keerthi

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

440 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

995 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

450 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

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

Shiva Keerthi

Shiva Keerthi

Updated on 24-Jun-2024 17:22:24

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 ... Read More

Java Program to Get First or Last Elements from HashSet

Shiva Keerthi

Shiva Keerthi

Updated on 24-Jun-2024 15:06:22

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 ... 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 16:30:49

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 ... Read More

Java Program to Find Common Elements Between Two Arrays

Shiva Keerthi

Shiva Keerthi

Updated on 31-May-2024 15:06:05

11K+ Views

We can use different approaches in Java to Find Common Elements between two arrays. We will discuss the approaches, including the basic steps involved, and provide the necessary code to achieve our goal. Whether you are a beginner or an experienced Java programmer, this article will provide you with the ... Read More

Advertisements