Rudradev Das has Published 75 Articles

Convert ArrayList to LinkedHashMap in Java

Rudradev Das

Rudradev Das

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

2K+ 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

6K+ 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

990 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

20K+ 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

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

Rudradev Das

Rudradev Das

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

141 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

1K+ 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

Collections.reverseOrder() in Java with Examples

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:43:20

342 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

Given two numbers as strings, find if one is a power of other

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:26:59

217 Views

Assume we have a data set of some numbers as a string and denoted as str[]. Now the task is to multiply the two large numbers which represents a string here. We need to find out from those two numbers as strings, find if one is a power of other. ... Read More

Palindrome by swapping only one character

Rudradev Das

Rudradev Das

Updated on 27-Dec-2023 17:23:08

287 Views

In a C++ environment, the palindrome is a process where a set or string remains same from the intial stage of the process to termination of that same particular process. Assume, we have a string denoted as the str[]. And the task is to check the string will be paindrome ... Read More

Advertisements