Skip to content

Category Archives: Java Programs

Given a singly linked list of characters, write a function that returns true if the given list is a palindrome, else false. Recommended: Please solve… Read More
Write a function to check whether two given strings are anagram of each other or not. An anagram of a string is another string that… Read More
Given a string, recursively remove adjacent duplicate characters from the string. The output string should not have any adjacent duplicates. See the following examples. Examples: … Read More
Given a linked list of coordinates where adjacent points either form a vertical line or a horizontal line. Delete points from the linked list which… Read More
There are 2 sorted arrays A and B of size n each. Write an algorithm to find the median of the array obtained merging the… Read More
Problem statement: We need to find and print unique pairs among all given pairs. Generally, if we have to find the unique numbers among all… Read More
Multithreading feature of java is the feature around which the concept revolves as it allows concurrent execution of two or more parts of a program… Read More
Given two linked lists, your task is to complete the function make union(), which returns the union of two linked lists. This union should include… Read More
In java, there exists a very important keyword known as super() keyword in java which is widely used in java being object-oriented and hence inheritance… Read More
JSON is commonly used in order to exchange data to and back fro from a  web server. The key point here is when we are… Read More
Here we will discuss how we can write effective codes with the help of loops. It is a general perception that the approach using loops… Read More
Java makes it possible to add images to Word documents using the addPicture() method of XWPFRun class provided by Apache POI package. Apache POI is… Read More
The Vector class implements a growable array of objects. Vectors basically fall in legacy classes but now it is fully compatible with collections. It is… Read More
The Vector class implements a growable array of objects. Vectors basically fall in legacy classes but now it is fully compatible with collections. It is… Read More
Java language is one of the most popular languages for many years. One of the most advantageous features of java programming is Multithreading. Multithreading allows… Read More

Start Your Coding Journey Now!