Skip to content

Category Archives: Java Programs

Problem Statement: Given a set of elements 1 to n and a set S of n sets whose union equals everything, the problem is to… Read More
JVM Stands for Java Virtual Machine. It is an abstract computing machine that allows a computer to run a Java program.  It is a platform-independent… Read More
The in-built File.length() method in java can be used to get file size in java. The length() function is a part of the File class… Read More
Regular Expressions or Regex (in short) is an API for defining String patterns that can be used for searching, manipulating, and editing a string in… Read More
PNG and JPG formats are used for image illustrations. Both the formats are used to provide good compatibilities with certain types of images like PNG… Read More
JPEG and GIF both are a type of image format to store images. JPEG uses lossy compression algorithm and the image may lose some of… Read More
Vector is a child interface of collection. If we want to represent a group of the individual objects as a single entity where duplicates are… Read More
We can use FilenameFilter in Java to override the accept(File dir, String name) method to execute the file filtering operation. Filename interface has a method… Read More
Given an Integer N. The task is to convert the number in characters. Illustration: Attention reader! Don’t stop learning now. Get hold of all the important… Read More
The floating-point data types (float and double) are not as accurate to be used in the financial calculations. Therefore, Java offers a separate class “BigDecimal”… Read More
There are so many pattern searching algorithms for the string. KMP algorithm, Z algorithm Rabin Karp algorithm, etc these algorithms are the optimization of Naive… Read More
Given a decimal number N, convert N into an equivalent hexadecimal number i.e convert the number with base value 10 to base value 16. The… Read More
Given a Hexadecimal number N, convert N into an equivalent decimal number i.e convert the number with base value 16 to base value 10. The… Read More
Given a decimal number N, convert N into an equivalent octal number i.e convert the number with base value 10 to base value 8. The… Read More
This article will guide you through the process of printing a Pyramid star pattern in Java. 1. Simple pyramid patternAttention reader! Don’t stop learning now.… Read More

Start Your Coding Journey Now!