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
Three 90 Challenge: Bigger and Better
As we transit into the new phase, it's essential to fuel our inner drive for success. On popular demand, GeeksforGeeks is happy to announce that we are back with the Thre...
Read More
How to Convert a String to a LocalDate in Java?
Converting a String to a LocalDate in Java is a common operation when you are dealing with date inputs from users. Java provides the LocalDate class in the java.time packa...
Read More
Java
Java-Strings
Java Programs
Picked
Java-Date-Time
Java-LocalDateTime
Java Examples
Get Two Different Objects Into a TreeSet in Java
In Java, TreeSet is a part of the Java Collection Framework and is located in the java.util package. It implements the NavigableSet interface and extends the AbstractSet a...
Read More
Java
Java-Collections
Java Programs
java-treeset
Picked
Java Examples
How to Use Deque as a Stack in Java?
The Deque extends the Queue interface and provides additional methods to support operation at both ends. This interface is part of the java.util package. The Deque interfa...
Read More
Java
Java-Collections
Java Programs
java-deque
Picked
Java-Stack
Java Examples
Find the Intersection of Two HashSets in Java
HashSets is a type of Collection in Java that cannot contain any duplicate values. It is often used when we need to maintain a unique data set in our application, it uses ...
Read More
Java
Java-Collections
HashSet
Java Programs
Picked
Java Examples
Convert String to LocalDate in Java
In this article, we will learn how to convert a String into Local Date format in Java. It will need to take a data value as a String after that by using LocalDate class we...
Read More
Java
Java-Strings
Java Programs
Picked
Java-Date-Time
Java-LocalDateTime
Java Examples
How to Convert a Java String Against a Pattern Regex?
Regular expressions, or "regex," are an effective tool in Java programming for checking texts against a given pattern. This post will walk you through the process of util...
Read More
Java
Java Programs
java-regular-expression
Picked
Java-String-Programs
regular-expression
Java Examples
How to Convert a String to Specific Character Encoding in Java?
In Java, the process of converting a String to a certain character encoding is converting the string's character sequence to a byte array and applying the chosen character...
Read More
Java
Java-Strings
Java Programs
Picked
Java-Charset
Java Examples
Validate Variable Names According to Naming Conventions in Java
Let's write a Java Program that checks whether a given variable name complies with the naming convention or not using Regular Expressions in Java. Example for Validating N...
Read More
Java
Java Programs
java-regular-expression
Picked
regular-expression
Java Examples
Pokhran Nuclear Test
Pokhran Nuclear Test: The Pokhran Nuclear Test was conducted by the Indian Government twice. One was in 1974 and the other in 1998. It was done to strengthen India’s posit...
Read More
Picked
UPSC
Operation Blue Star
Operation Blue Star was started by the Indian Army in June 1984 to conduct an operation on Harmandir Sahib, which is usually called as "Golden Temple" by many people. They...
Read More
Picked
UPSC
How to Create a Directory in Java?
In Java, creating a directory is a common operation when working with file system manipulation. Directories are used to organize files and other directories into a hierarc...
Read More
Java
Java Programs
java-file-handling
Picked
Java-File Class
Java-Files
Java Examples
How to Replace the Last Occurrence of a Substring in a String in Java?
In this article, we will learn about replacing the last instance of a certain substring inside a string as a typical need. We'll look at a practical Java solution for this...
Read More
Java
Java-Strings
Java Programs
Picked
Java Examples
How to Redirect cin and cout to Files in C++?
In C++, we often ask for user input and read that input using the cin command and for displaying output on the screen we use the cout command. But we can also redirect the...
Read More
cpp-input-output
cpp-file-handling
C++
C++ Programs
Picked
CPP Examples
Pressure Belts of the Earth
Our earth is not flat, instead, it is spherical, and due to this reason, some regions are heat surplus and some are heat deficit. This change in temperature at many places...
Read More
General Knowledge
School Geography
Geography-Class 9
Geography-Class 10
Sort Numbers from File Using Unix Pipes in C
In this article, we will write a straightforward C program that sorts numerical data from a file using pipes and forks.The sorting process is carried out using the sort co...
Read More
cpp-file-handling
C++
C Programs
Linux-Unix
C++ File Programs
1
...
1269
1270
1271
...
11255