Christmas Sale
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme
Group
Reviews
About us
Start
Start learning
Start learning now
Articles
Authors
All groups
All Articles List
CodeGym
/
Java Blog
/
Java IO & NIO
Java IO & NIO
221 members
Leaderboard
Popular
New
Old
Aditi Nawghare
Java IO & NIO
16 July 2018 15:23
Reading from the keyboard: "readers"
The lessons and tasks in Level 3 taught you how to display stuff on the console, and, moving in the other direction, how to read data from the keyboard. How in the world does this work? In reality, programs are rarely entirely independent. They communicate with other programs, systems, the Internet, etc ...
Alex Vypirailenko
Java IO & NIO
23 March 2019 12:35
Input/output in Java. FileInputStream, FileOutputStream, and BufferedInputStream classes
"Hi! In today's lesson, we'll continue our conversation about input and output streams in Java (Java I/O). This is not the first lesson on this topic, and it certainly won't be the last :) As it happens, the Java language provides many ways...
Vasyl Malik
Java IO & NIO
11 August 2022 8:12
Java PrintStream Class
Hi! Today we'll talk about the PrintStream class and everything it can do. Actually, you are already familiar with two methods of the PrintStream class. They are print() and println(), which you probably use every day :) Because the System.out variable is a PrintStream object, you are calling one of this class's methods...
Jesse Haniel
Java IO & NIO
26 March 2019 14:42
Practice working with the BuffreredReader and InputStreamReader classes
Hi! Today's lesson will be divided into two parts for convenience. We'll repeat some old topics that we touched on previously, and we'll consider some new features :) Let's start with the first one...
Andrey Gorkovenko
Java IO & NIO
28 January 2020 9:45
Java Files, Path
Hi! Today we'll talk about working with files and directories. You already know how to manage file contents: we've dedicated a lot of lessons to this :) I think you find it easy to remember a few classes used for these purposes. In today's lesson, we'll talk specifically about file management: creating, renaming, etc...
Artem Divertitto
Java IO & NIO
25 December 2024 9:09
Scanner NextInt() Method in Java
What is the nextInt() Method in Java? The nextInt() method scans the next token of the input data as an “int”. As the name of the class Scanner elaborates, nextInt() method of this class is used to scan or...
John Selawsky
Java IO & NIO
23 July 2019 13:01
BufferedReader and BufferedWriter
Java’s BufferedReader class reads text from a stream of symbols, buffering the symbols to efficiently read characters, arrays, and strings. You can pass the buffer size to the constructor as a second argument. Here's an example of using the BufferedReader and BufferedWriter classes...
Volodymyr Portianko
Java IO & NIO
24 October 2022 13:23
Scanner nextLine() Method in Java
Scanner, a class in the Java programming language that can parse primitive types and strings using regular expressions. The nextLine() scanner method in Java moves this scanner beyond the current line and returns the skipped input...
Volodymyr Portianko
Java IO & NIO
20 November 2020 7:10
Is there nextChar() in Scanner Class in Java?
Taking character input in Java isn’t as simple as taking input as a string or integer. The Scanner class in Java works with nextInt(), nextLong(), nextDouble(), etc. However, it does not support nextChar in Java, which makes taking character input slightly more complicated. If you’re looking...
Volodymyr Portianko
Java IO & NIO
4 January 2025 14:31
Java PrintWriter Class
What is the PrintWriter Class in Java? “PrintWriter is a class used to write any form of data e.g. int, float, double, String or Object in the form of text either on the console or in a file in Java.” For example, you may use the PrintWriter object to log data in a file or print it on the console...
Milan Vucic
Java IO & NIO
26 December 2024 12:51
Java – Write to File
One of the most common tasks in software development is the ability to read and write files. In Java, writing to a file is a straightforward process that can be done using built-in classes and methods. In this article, we will explore how to write to a file using Java...
Milan Vucic
Java IO & NIO
25 May 2023 9:26
Java FileReader Class
The FileReader class extends the InputStreamReader class and is specifically designed for reading character-based data from a file. It is an ideal choice when working with text files and...
Show more
1
2
Please enable JavaScript to continue using this application.