Skip to content

Category Archives: Java Programs

The string can be repeated N number of times, and we can generate a new string that has repetitions. repeat() method is used to return… Read More
Spreadsheets are the easier way to represent table like data and can give a visual representation of data in tabular format. In this article, let… Read More
The Vector class in java implements a dynamic array i.e. it can grow and shrink according to the elements that we insert or remove to/from… Read More
Method overriding in Java is when a subclass implements a method that is already present inside the superclass. With the help of method overriding we… Read More
In Java, we have already defined, exception classes such as ArithmeticException, NullPointerException etc. These exceptions are already set to trigger on pre-defined conditions such as… Read More
A character in UTF-8 can be from 1 to 4 bytes long, subjected to the following rules: For a 1-byte character, the first bit is… Read More
VList is a data structure that combines fast indexing of arrays with the easy extension of singly-linked lists. VList generally supports the following functions. Insert… Read More
The LinkedHashMap is just like HashMap with an additional feature of maintaining an order of elements inserted into it. HashMap provided the advantage of quick… Read More
 File handling plays a major role in doing so as the first essential step is writing content to a file. For this is one must… Read More
PDDocument class of ‘org.apache.pdfbox.pdmodel’ package which extends ‘java.lang.Object‘. is used. Declaration: public class PDDocument extends Object implements Pageable, Closeable Pre-requisite: Constructors PDDocument(): This constructor used… Read More
Strassen’s algorithm is used for the multiplication of Square Matrices that is the order of matrices should be  (N x N).  Strassen’s Algorithm is based… Read More
You are given an array A[] of N integers. Your task is to make all the elements of the final array equal to 1. You… Read More
Byte Array – A Java Byte Array is an array used to store byte data types only. The default value of each element of the… Read More
ArrayList is part of the collection framework. It is a List and implements the java.util.list interface. ArrayList is a better alternative to Arrays, especially if… Read More
Given n electric components and m electric wires to connect them where each wire has a length. Find the optimized wire length between the two… Read More

Start Your Coding Journey Now!