Practical solutions

Java Howtos How-To Guides

Solve the problem. Keep building. Collection of Java how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Generate MD5 Hash in JavaThis article discusses MD5 hashing algortihm and method to generate MD5 hash in Java. How to Handle EOFException in JavaThis article discusses about the EOFException in Java and how we can handle these exceptions. How to Create Temporary Files in JavaIn this article, we discuss the temporary files and the ways to create temporary files in Java using the Java legacy IO and NIO libraries. How to Use Notepad++ to Compile and Run Java ProgramsThis article demonstrates a step-by-step tutorial on how to use Notepad++ to compile and run Java programs. How to Reverse an Integer in JavaThis tutorial demonstrates how to reverse an integer in Java without using an array. How to Compress Strings in JavaThis tutorial demonstrates how to compress strings in Java using the deflater. How to Calculate Logarithm in JavaThis tutorial demonstrates how to calculate logarithm in Java using the Math.log function. How to Sort Manual Linked List With Bubble Sort Algorithm in JavaFirst, we will discuss bubble sort algorithm in Java with nodes examples. Then, we will execute two methods to demonstrate how you can sort a linked list using a manual bubble sort algorithm. How to Create PPTP Connection in JavaThis article demonstrates how can we create PPTP connection using Java Programming. How to Create Callback Functions in JavaThis tutorial demonstrates how to create and use callback functions in Java. How to Configure Java on Debian LinuxWe demonstrate how to update-alternatives --config java on Debian Linux. Using Debian bash shell, we will use bash commands to install open JDK(s) on a Windows 10 machine. Hence, you will solve update-alternatives --config and learn how to use Debian bash on Windows for the same purpose. How to Request HTTP Client and Get Response in JavaThis article will explain HTTP clients and HTTP requests in Java programs. Also, it will get an HTTP response in JSON using the former methods. The first part will enable your understanding, while the second part will help you build your HTTP programs. How to Create a Concurrent Set in JavaThis tutorial introduces the methods and demonstrates how to create a concurrent set in Java. How to Draw a Hexagon in JavaThis article demonstrates how to draw a hexagon in Java programming. It also teaches how we can use arrays and object to draw a shape in Java. How to Create Generators in JavaThis tutorial demonstrates how to create generators in Java. How to Asynchronously Call a Method in JavaThis article discusses how to call a function in Java asynchronously. How to Implement Data Access Object in JavaFirst, we exemplify the core concepts of the data access object model in Java. We also use MySQL connector and its JDBS driver to connect with a newly created database to manage CRUD applications using DAO concept. How to Format Specifiers for Floating-Point Numbers in JavaThis article introduces the format specifiers for floating-point numbers in Java. It also explains how we can use them with various flags and functions. How to Use System.gc() for Garbage Collection in JavaThis tutorial demonstrates how to use System.gc() for garbage collection in Java. How to Split a Comma-Separated String in JavaWe will show you how to split a comma-separated string or any character you want. The first program uses Indexof and substring methods, and the second two examples will use the split method. Both approaches are necessary, but the first is fundamental for beginners. How to Create Image Icons in JavaThis tutorial demonstrates how to create image icons in Java. Regular Expression \\s in JavaThis tutorial demonstrates how to use \s in Java. How to Send HTTP Requests in JavaThis tutorial demonstrates how to send HTTP requests in Java. How to Find Java Virtual Machine DLLThis tutorial demonstrates how to check where JDK/JRE is installed and find the path of Java for jvm.dll file.