A number is said to be a Spy number if the sum of all the digits is equal to the product of all digits. For… Read More

# Category Archives: Java Programs

Pollard’s rho algorithm is an algorithm for integer factorization. It is particularly effective at splitting composite numbers with small factors. The Rho algorithm’s most remarkable… Read More

The Comparator interface in Java can be used to compare user-defined objects. The Comparator interface is present in java.util package. Binary search is a searching… Read More

A fast Fourier transform (FFT) is an algorithm to compute the discrete Fourier transform (DFT) and its inverse. Fourier analysis converts time (or space) to… Read More

The static keyword is a non – access modifier in Java which can be used for variables, methods, and block of code. Static variables in… Read More

ArrayList is present in java.util package and it is the implementation class of List interface. It does allow the duplicates elements and also it maintains… Read More

Media Access Control address (MAC address) is a unique hexadecimal identifier assigned to a Network Interface Controller (NIC) to be used as a network address… Read More

Function without return type stands for a void function. The void function may take multiple or zero parameters and returns nothing. Here, we are going… Read More

Use java.nio package for extracting the creation date and time of any file through java. To extract the date and time of the file use… Read More

Given below the two matrices A and B, the task is to subtract them, and for subtracting the matrices the size of both the matrix… Read More

To convert PowerPoint slides to images, multiple packages are required like, java.awt because It contains all the classes for creating user interfaces and for painting… Read More

For, sorting names in an Alphabetical order there are multiple ways to sort the array, like using inbuilt Arrays.sort() method or using normal sorting algorithms… Read More

Given a Linked List, the task is to swap two elements without disturbing their links. There are multiple ways to swap. Elements can be swapped… Read More

The LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements present in java.util package. When the iteration order is… Read More

For finding the minimum element in the ArrayList(This class is found in java.util package), complete traversal of the ArrayList is required. There is an inbuilt… Read More