Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
Java-Functions
4.2K+ articles
Java Programs
2.0K+ articles
Java - util package
1.6K+ articles
School Programming
1.5K+ articles
java-stream
142+ articles
Java-Library
71+ articles
java-file-handling
34+ articles
Java-I/O
735+ posts
Recent Articles
Popular Articles
Scanner close() method in Java with Examples
Last Updated: 10 October 2018
The close() method ofjava.util.Scanner class closes the scanner which has been opened. If the scanner is already closed then on calling this method, it will have no effect...
read more
Java
Java - util package
Java-I/O
Java-Functions
Scanner delimiter() method in Java with Examples
Last Updated: 10 October 2018
The delimiter() method ofjava.util.Scanner class returns the Pattern this Scanner is currently using to match delimiters.Syntax:public Pattern delimiter() Return Value:...
read more
Java
Java - util package
Java-I/O
Java-Functions
Scanner findInLine() method in Java with Examples
Last Updated: 27 November 2024
findInLine(Pattern pattern)The findInLine(Pattern pattern) method of java.util.Scanner class tries to find the next occurrence of the specified pattern ignoring delimiters...
read more
Java
Java - util package
Java-I/O
Java-Functions
Scanner skip() method in Java with Examples
Last Updated: 11 October 2018
skip(Pattern pattern)The skip(Pattern pattern) method of java.util.Scanner class skips input that matches the specified pattern, ignoring the delimiters. The function skip...
read more
Java
Java - util package
Java-I/O
Java-Functions
Scanner reset() method in Java with Examples
Last Updated: 11 October 2018
The reset() method of java.util.Scanner class resets this scanner. On resetting a scanner, it discards all of its explicit state information which may have been changed by...
read more
Java
Java - util package
Java-I/O
Java-Functions
Scanner radix() method in Java with Examples
Last Updated: 11 October 2018
The radix() method of java.util.Scanner class returns this scanner's default radix.Syntax: public int radix()Return Value: This function returns the default radix of this ...
read more
Java
Java - util package
Java-I/O
Java-Functions
Scanner nextShort() method in Java with Examples
Last Updated: 19 November 2020
The nextShort(radix) method of java.util.Scanner class scans the next token of the input as a short. If the translation is successful, the scanner advances past the input ...
read more
Java
Java - util package
Java-I/O
Java-Functions
How to Read and Print an Integer Value in Java?
Last Updated: 09 April 2025
The given task is to take an integer as input from the user and print that integer in Java.To read and print an integer value in Java, we can use the Scanner class to take...
read more
Java
School Programming
Java-I/O
Java-Integer
print vs println in Java
Last Updated: 20 November 2024
print() and println() are the methods of System.out class in Java which are used to print the output on the console. The major difference between these two is that print()...
read more
Java
Technical Scripter
Programming Language
School Programming
Java-I/O
java-basics
Java-Functions
Serializable Interface in Java
Last Updated: 24 November 2020
The Serializable interface is present in java.io package. It is a marker interface. A Marker Interface does not have any methods and fields. Thus classes implementing it d...
read more
Java
Java-Collections
Java-I/O
FileOutputStream in Java
Last Updated: 10 March 2025
In Java, the FileOutputStream class is a subclass of OutputStream. It is used to write data to a file as a stream of bytes. FileOutputStream is commonly employed for writi...
read more
Java
Java-I/O
Java-File Class
Fast Output in Java
Last Updated: 04 July 2022
While doing problems in various coding platforms in some questions we end up with (TLE). At that point of time even if we use fast input then also, sometimes (TLE) remains...
read more
Misc
Java
Java-I/O
Difference Between FileInputStream and ObjectInputStream in Java
Last Updated: 19 July 2022
FileInputStream class extracts input bytes from a file in a file system. FileInputStream is meant for reading streams of raw bytes such as image data. For reading streams ...
read more
Java
Difference Between
Picked
Java-I/O
java-stream
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 practice problems that help to upscale...
read more
Java
Java Programs
Output of Java Program
Java-Library
Java-Output
Java-I/O
java-basics
Java-Object Oriented
Java-Strings
Java-Arrays
Java-Data Types
Java-Functions
Java.io Package in Java
Last Updated: 12 June 2024
Java.io Package in JavaThis package provides for system input and output through data streams, serialization and the file system. Unless otherwise noted, passing a null ar...
read more
Java
Java-I/O
Java-Packages
1
2
3
4
...
49
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 !