In this article, I show you (using an example) how the Java ByteBuffer works, and what precisely the Methoden flip() and compact() do.
In this article, I explain the NIO classes FileChannel and ByteBuffer introduced in Java 1.4.
Moreover, I show what possibilities they provide to read and write files and what their advantages are – compared to the methods discussed before.
In this fifth part of the series, you will learn how to write and read structured data with DataOutputStream, DataInputStream, ObjectOutputStream, and ObjectInputStream.
This fourth part of the series describes the most important directory and file operations.
You will learn how to list files in a directory, how to search for files, how to move, rename, and copy files, and much more.
This third part of the series of articles shows how to use the classes File, Path, and Paths to construct file and directory paths – regardless of the operating system.
This second part introduces methods for writing small and large text and binary files in Java.
After reading this article, you will know exactly when to use FileWriter, FileOutputStream, OutputStreamReader, BufferedOutputStream, and BufferedWriter.
This article introduces methods for reading and writing files in Java.
After reading this article, you will know exactly when to use FileReader, FileInputStream, InputStreamReader, BufferedInputStream, and BufferedReader.
In today's article you will learn which methods you have to parse a String to an int in Java, and what you have to consider when using these methods.
In this article I will show you the fastest method to convert an int to a String in Java. You will be surprised!