Shiva Keerthi has Published 32 Articles

Java Program to Find the smallest missing number

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:58:42

416 Views

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

Java Program to Find the Lost Number

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:55:27

130 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 TreeMap Key, Value, or Entry Greater or Less than the Specified Value

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:34:54

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

Java Program to Get the Union & Intersection of Two TreeSet

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:32:38

127 Views

TreeSet is a class that implements Set interface in Java. In a tree set 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 ... Read More

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

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:29:59

1K+ 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 First Element from LinkedHashSet

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:27:26

352 Views

LinkedHashSet is a class provided by Java that implements Set Interface. The first element of a LinkedhashSet is nothing but the first element in the collection. In this article, we will discuss different approaches to get the first element from LinkedHashset. What is a LinkedHashSet? A LinkedHashSet is a ... Read More

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

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:20:58

369 Views

Motherboard Serial Number is an id assigned to the motherboard of a computer. It is used to 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 ... Read More

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

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:17:56

1K+ 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 identifier of ... Read More

Java Program to Get First or Last Elements from HashSet

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:15:03

1K+ 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 Get System IP Address in Windows and Linux Machine

Shiva Keerthi

Shiva Keerthi

Updated on 16-Aug-2023 09:09:01

476 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 connection between them. In this section, we will learn how to find the IP Address of a Windows and ... Read More

Advertisements