

Java Deep Reflection: How to Hack Integer and String
Sven WoltmannMarch 11, 2020Can 2+3 = 6?In this article, I show you how Deep Reflection can be used to change the values of Integers and Strings at runtime.


Java ByteBuffer Example: How to Use flip()
and compact()
Sven WoltmannFebruary 26, 2020In this article, I show you (using an example) how the Java ByteBuffer works, and what precisely the Methoden flip() and compact() do.


FileChannel, Memory-Mapped I/O, Locks
(Java Files Tutorial)
Sven WoltmannFebruary 26, 2020In this article, you will learn everything about the NIO classes FileChannel and ByteBuffer introduced in Java 1.4.You'll learn about their capabilities for reading and writing files and their advantages over the previously discussed methods.


DataOutputStream + DataInputStream
(Java Files Tutorial)
Sven WoltmannFebruary 12, 2020In this fifth part of the series, you will learn how to write and read structured data with DataOutputStream, DataInputStream, ObjectOutputStream, and ObjectInputStream.


How to List, Move, Copy, and Delete Files
(Java Files Tutorial)
Sven WoltmannJanuary 29, 2020This 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.


File and Directory Names in Java: File, Path, Paths
Sven WoltmannJanuary 15, 2020This 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.


How to Write Files Quickly and Easily
(Java Files Tutorial)
Sven WoltmannDecember 4, 2019This 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.


How to Read Files Easily and Fast
(Java Files Tutorial)
Sven WoltmannNovember 21, 2019This 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.


How to Convert String to Int in Java – Peculiarities and Pitfalls
Sven WoltmannNovember 6, 2019In 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.


How to Convert int to String in Java – The Fastest Way
Sven WoltmannOctober 24, 2019In this article I will show you the fastest method to convert an int to a String in Java. You will be surprised!