Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Java
10.1k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-time package
570+ articles
Java-lang package
380+ articles
java-basics
310+ articles
Java-text package
240+ articles
Java-IO package
240+ articles
Java-NIO package
220+ articles
Java-Time-Chrono package
160+ articles
Java-Functions
4.1k+ posts
Popular Articles
Recent Articles
Java Exercises - Basic to Advanced Java Practice Programs with Solutions
Last Updated: 02 January 2025
Looking for Java exercises to test your Java skills, then explore our topic-wise Java practice exercises? Here you will get 25 plus practic
...read more
Output of Java Program
Java
Java-Library
Java-Output
Java-I/O
java-basics
Java-Object Oriented
Java-Strings
Java-Arrays
Java-Data Types
Java-Functions
Java Programs
Optional ofNullable() method in Java with examples
Last Updated: 30 July 2019
The ofNullable() method of java.util.Optional class in Java is used to get an instance of this Optional class with the specified value of th
...read more
Java
Java - util package
Java-Functions
Java-Optional
Difference between static and non-static method in Java
Last Updated: 30 June 2023
A static method is a method that belongs to a class, but it does not belong to an instance of that class and this method can be called witho
...read more
Java
Static Keyword
Java-Functions
Picked
Similar Topics
Java
10.1k+ articles
Java - util package
1.5k+ articles
Java-Collections
1.1k+ articles
Java-time package
570+ articles
Java-lang package
380+ articles
java-basics
310+ articles
Java-text package
240+ articles
Java-IO package
240+ articles
Java-NIO package
220+ articles
Java-Time-Chrono package
160+ articles
List contains() method in Java with Examples
Last Updated: 03 December 2024
The contains() method of List interface in Java is used for checking if the specified element exists in the given list or not. Example:[GFG
...read more
Java
Java-Collections
Java-Functions
java-list
Double parseDouble() method in Java with examples
Last Updated: 26 October 2018
The parseDouble() method of Java Double class is a built in method in Java that returns a new double initialized to the value represented by
...read more
Java
java-basics
Java-lang package
Java-Functions
Java-Double
Scanner nextLine() method in Java with Examples
Last Updated: 12 October 2018
The nextLine() method of java.util.Scanner class advances this scanner past the current line and returns the input that was skipped. This fu
...read more
Java
Java-Library
Java - util package
Java-Functions
Function Interface in Java
Last Updated: 16 April 2025
The Function Interface is a part of the java.util.function package that has been introduced since Java 8, to implement functional programmin
...read more
Java
java-basics
Java - util package
Java-Functions
java-interfaces
Java 8
Stack pop() Method in Java
Last Updated: 12 December 2021
The Java.util.Stack.pop() method in Java is used to pop an element from the stack. The element is popped from the top of the stack and is re
...read more
Java
Java-Collections
Java - util package
Java-Functions
Java-Stack
Java String join() with examples
Last Updated: 08 April 2025
The java.lang.string.join() method concatenates the given elements with the delimiter and returns the concatenated string.Note that if an e
...read more
Java
Java-Strings
Java-lang package
Java-Functions
DSA
Java String contains() Method with Example
Last Updated: 19 November 2024
The String.contains() method is used to search for a sequence of characters within a string. In this article, we will learn how to effective
...read more
Java
Java-Strings
Java-Functions
Stream.reduce() in Java with examples
Last Updated: 28 August 2024
In Java, the Stream.reduce() method is used to perform a reduction on the elements of a stream using an associative accumulation function an
...read more
Java
Java - util package
Java-Functions
java-stream
Java-Stream interface
BigDecimal Class in Java
Last Updated: 08 March 2024
The BigDecimal class provides operations on double numbers for arithmetic, scale handling, rounding, comparison, format conversion and hashi
...read more
Java
Java-Data Types
Java-Functions
Java-BigDecimal
Java-math-package
Java ArrayList add() Method with Examples
Last Updated: 10 December 2024
The add() method in the ArrayList class is used to add elements to the list. There are different versions of this method. Example 1: In this
...read more
Java
Java-Collections
Java-Functions
Java-ArrayList
Collections.reverse() Method in Java with Examples
Last Updated: 24 March 2025
The reverse() method of the Collections class, as the name suggests, is used to reverse the order of elements in a list. Note: It does not s
...read more
Java
Java-Collections
Java - util package
Java-Functions
Java-Collections-Class
String to int in Java
Last Updated: 22 November 2024
Converting a String to an int in Java can be done using methods provided in the Integer class, such as Integer.parseInt() or Integer.valueOf
...read more
Java
Java-Strings
Java-Functions
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !