Courses
Tutorials
Jobs
Practice
Contests
Data Structure
Java
Python
HTML
Interview Preparation
Trending Now
DSA
Web Tech
Foundational Courses
Data Science
Practice Problem
Python
Machine Learning
JavaScript
System Design
Django
DevOps Tutorial
Java
C
C++
ReactJS
NodeJS
CP Live
Aptitude
Puzzles
Projects
GBlog
Frontend Developer Roadmap 2024
Frontend development means to design the face of a website or application. It involves working on the appearance of the website. Building interactive buttons, using images...
Read More
Java Program to Empty an ArrayList in Java
ArrayList class is a resizable array, present in 'java.util package'. The difference between a built-in array and an ArrayList in Java, is that the size of an array cannot...
Read More
Java
Java Programs
Java-ArrayList
Java Program to Get First or Last Elements from HashSet
The HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. There is no guarantee made for the iteration order of the set ...
Read More
Java
Java Programs
java-hashset
Picked
Java Program to Shuffle Vector Elements
Vectors basically fall in legacy classes but now it is fully compatible with collections. Java has many built-in functions to perform different operations on collections o...
Read More
Java
Java Programs
Picked
Java-Vector
How to Remove Duplicate Elements from the Vector in Java?
Using LinkedHashSet and TreeSet, duplicate elements are removed. Because the LinkedHashSet and TreeSet do not accept duplicate elements.Example:Input : vector = [1, 2, 3, ...
Read More
Java
Technical Scripter
Java Programs
Picked
Java-Vector
Technical Scripter 2020
How to Check if LinkedHashMap is Empty in Java?
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 insertion, ...
Read More
Java
Java Programs
Java-LinkedHashMap
Picked
Sort LinkedHashMap by Keys in Java
LinkedHashMap maintains insertion order. Convert LinkedHashMap into TreeMap and after that print keys of TreeMap which are sorted in nature. Example:Input: linkedHashMap =...
Read More
Java
Technical Scripter
Java Programs
Java-LinkedHashMap
Picked
Technical Scripter 2020
Traverse Through ArrayList in Forward Direction in Java
ArrayList is a part of the collection framework and is present in java.util package. It provides us with dynamic arrays in Java. The listIterator() method of java.util.Arr...
Read More
Java
Technical Scripter
Java Programs
Java-ArrayList
Picked
Technical Scripter 2020
Sort ArrayList in Descending Order Using Comparator in Java
A comparator is an interface that is used to rearrange the ArrayList in a sorted manner. A comparator is used to sort an ArrayList of User-defined objects. In java, a Comp...
Read More
Java
Technical Scripter
Java Programs
Java-ArrayList
Picked
Java-Comparator
Technical Scripter 2020
How to Find the Minimum or Maximum Element from LinkedHashSet in Java?
Given a LinkedHashSet the task is to find the minimum and maximum element from this LinkedHashSet in Java. There are two ways to find the minimum or maximum element from L...
Read More
Java
Java Programs
Picked
java-LinkedHashSet
Merging Multiple PPTs using java
To merge multiple PowerPoint Presentation files using Java. To achieve this use a Java Library called Apache POI. Apache POI is a project run by the Apache Software Founda...
Read More
Java
Java Programs
Picked
Checking if Element Exists in LinkedHashSet in Java
The Java.util.LinkedHashSet.contains() method is used to check whether a specific element is present in the LinkedHashSet or not. So basically it is used to check if a Set...
Read More
Java
Java Programs
Picked
java-LinkedHashSet
How to Merge Two LinkedHashSet Objects in Java?
Use the addAll() method to merge two LinkedHashSet objects or append elements of one LinkedHashSet object to another LinkedHashSet object. Comparing with the set, addAll()...
Read More
Java
Java Programs
Picked
java-LinkedHashSet
Java Program to Find the Area of a Circle Given the Radius
A circle is a simple shape consisting of all the points in the plane that are equidistant from a point known as the center of the circle. In this article, we will learn ho...
Read More
Java
Java Programs
Picked
How to Prevent the Addition of Duplicate Elements to the Java ArrayList?
Ever wondered how you can make an ArrayList unique? Well, in this article we'll be seeing how to prevent the addition of duplicates into our ArrayList. If an ArrayList hav...
Read More
Java
Java Programs
Java-ArrayList
Picked
Get Unique Values from ArrayList in Java
Let's see how to get unique values from ArrayList. Convert ArrayList to HashSet to insert duplicate values in ArrayList but on the other hand, HashSet is not allowing to i...
Read More
Java
Technical Scripter
Java Programs
Java-ArrayList
Picked
Technical Scripter 2020
1
...
6858
6859
6860
...
11360