Rudradev Das has Published 79 Articles

Convert ArrayList to HashMap in Java

Rudradev Das

Rudradev Das

Updated on 17-Jun-2024 22:45:04

1K+ Views

In Java the List is a child interface class which can also represents a Collection set. It is an ordered collection set, consists of the objects where duplicate values can be sorted also. Java array list is a collection framework as it presents into the java.util package and provides the ... Read More

Convert ArrayList to LinkedHashMap in Java

Rudradev Das

Rudradev Das

Updated on 17-Jun-2024 22:08:36

622 Views

The LinkedHashMap Class is an one type of Hash Map which enables an user to maintain a systematic cronology of the elements present into it. This feature also provides the method of insertion, search and deletion in a quick manner. When we need to convert an array list to a ... Read More

Convert byte[] array to File using Java

Rudradev Das

Rudradev Das

Updated on 17-Jun-2024 19:27:27

2K+ Views

The file class is a representation of directory path name in Java with different formats on different platforms. The file class contains the method of different path name which is responsible for deleting and renaming files by using the new directories. It is an abstract class in a string formation ... Read More

Primitive data type vs. Object data type in Java with Examples

Rudradev Das

Rudradev Das

Updated on 17-Jun-2024 19:17:44

652 Views

In a Java environment, every variable contains with some data types, which specify the value and type of a sorted identifier. There are two categories − Primitive Data type Non-Primitive Data type or Object data type The primitive data types are some predefined data types with some specific ... Read More

Java Program to Reverse a List

Rudradev Das

Rudradev Das

Updated on 14-Jun-2024 15:35:05

17K+ Views

What is a Reverse List? Reverse a list is an operation of swapping or interchanging the elements position into a particular list. While you are writing a code in Java, you can easily reverse the order of a certain flow. It is a conventional way of any programming language in ... Read More

Java Program to Sort 2D Array Across Columns

Rudradev Das

Rudradev Das

Updated on 31-May-2024 16:56:36

5K+ Views

In the field of data structure, the vector is a growable class array of a particular object. The vector class falls in the legacy class which is fully compatible with the collections. In java.util package, the List interface can use all the methods listed here. Here is the initial capacity ... Read More

Constructor Chaining In Java programming

Rudradev Das

Rudradev Das

Updated on 29-Dec-2023 18:36:32

655 Views

The constructor chaining is a particular sequence of injecting constructors when an user initialize an object in a particular method. This process can be used when we invoke a bulk number of constructors one by one only on the basis of the instance class. This process is an another method linked with the ... Read More

Commonly Used Methods in LocalDate, LocalTime and LocalDateTime Classes in Java

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:57:41

65 Views

There are three types of most important classes we can find in a Java environment, related to date and time. LocalDate, LocalTime and LocalDateTime are available in the Java programming to handle the operations related with the date and time problems. Here we need to import the Java package as ... Read More

Collectors toSet() method in Java 8

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:51:27

2K+ Views

Collections reverse order class is a reverse order method, which is encoded in the collections class. It is present in the java.util package. It returns a comparator as a result, which is a predefined comparator in nature. By using this comparator package, we can rearrange the collections of a particular ... Read More

Collections.sort() in Java with Examples

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:45:36

301 Views

The collection class is an enhanced static method to sort the elements from a particular collection of a list or an array. For this process, we can use a tree set also, when we operate on a set of elements as present as the raw set type primarily. The Collections.sort() ... Read More

Advertisements