Skip to content

Category Archives: Java Programs

In this article, we will try to add and subtract these two Complex Numbers by creating a Class for Complex Numbers, in which: The complex… Read More
Given a string str consisting of digits, alphabets, and special characters. The task is to extract all the integers from the given string. Examples: Input:… Read More
It is possible to send data from the server and receive a response from the client. Similarly, the client can also send and receive data… Read More
To create an application that uses UDP to establish the connection between a client and server, we need to perform the following steps: Create a… Read More
Swing is a part of the JFC (Java Foundation Classes). Building Graphical User Interface in Java requires the use of Swings. Swing Framework contains a… Read More
In programming it is quite usual for a Java programmer to face time limit exceeded or TLE if they do not use Arrays.sort() function carefully.… Read More
An array is a collection of items stored at contiguous memory locations. In this article, we will see how to insert an element in an… Read More
Given an array arr in Java, the task is to print the contents of this array without using any loop. First let’s see the loop method. … Read More
Given an array of strings, we need to sort the array in increasing order of string lengths, using Map Data Structure. Examples: Input: str[] =… Read More
Prerequisite: Generic Class  We can also use them to code for Graph in Java. The Graph class is implemented using HashMap in Java. As we… Read More
Pre-requisite: Hamming code Hamming code is a set of error-correction codes that can be used to detect and correct the errors that can occur when… Read More
Given a string str consisting of a sentence, the task is to find the count of words in the given sentence that end with the… Read More
A right wedge is a wedge with parallel side triangles. It have two side bases a and b, top edges e and height h. The… Read More
Prerequisites: Java Collections, Java Array List, Comparator Interface in Java Given a list object containing multiple records, our task is to perform SQL group by… Read More
The IT industry, especially in India, heavily uses Java in most of their projects. Being a Java developer, one should have the knowledge about the… Read More

Start Your Coding Journey Now!