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 Create JAR Files in JavaIn this tutorial, we will show you how you can easily create JAR files using both integrated development environment and command line interface (for windows users) in Java. How to Implement Dijkstra's Algorithm in JavaThis tutorial describes and demonstrates the Dijkstra's Algorithm in Java. How to Handle FileNotFoundException in JavaThis tutorial describes and demonstrates FileNotFoundException in Java and how to handle it. How to Download Javadoc for Offline ReadingIn this article, you will learn how to download Javadoc for offline reading in Java. How to Compare ArrayLists in JavaIn this tutorial, first, we will compare two array lists using a comparison method in Java. We also apply the same method on Java strings before applying it on array lists. Finally, we demonstrate, how you can sort an unordered array list before comparison. How to Check if a Number Is Prime in JavaThis tutorial demonstrates how to check if a number is prime or not in Java. How to Print Pyramid of Stars in JavaThis tutorial demonstrates how to print a pyramid of stars in Java. How to Move File From Current Directory to a New Directory in JavaThis tutorial educates about different ways to move a file from one directory to another in Java. How to Implement Topological Sorting in JavaWe will implement topological sort algorithm on a direct acyclic graph using depth first search technique in Java. How to Create User-Defined Custom Exception in JavaThis tutorial demonstrates how to create user-defined custom exception in Java. How to Convert Stream Element to Map in JavaWe will convert stream elements into map using Java. We will show you how to extract map from Java strings using Collectors.toMap(). How to Convert C# Codes to Java CodesThis article explains the steps to convert a C# code to Java. How to Compare Arrays in JavaThis tutorial demonstrates various ways to compare arrays in Java using different code examples. How to Create Pascal's Triangle in JavaThis tutorial introduces about Java Pascal's triangle. It demonstrates various approaches to print pascal's triangle considering the time and space complexity. How to Write XML in JavaThis tutorial demonstrates how to write XML to files in Java. How to Set One Array Equal to Another in JavaThis tutorial demonstrates how to set one array equal to another in Java. How to Read Binary Files in JavaThis tutorial demonstrates how to read the binary files with different class in Java. How to Get Size of SQL ResultSet in JavaThis tutorial demonstrates how to get the size of the SQL resultset in Java. How to Fix Execution of Java Constructors in InheritanceThis tutorial demonstrates the execution of Java constructors in inheritance. It also presents the execution process of default and parameterized constructors in inheritance. How to Use Recursion to Draw Koch Snowflake in JavaThis article will explain how to make a Koch snowflake using recursion in Java. How to Create a Bitmap Image in JavaThis article discusses bitmap image and the BufferedImage class in Java. It further discusses how to create a bitmap image in Java. How to Determine the Height of the Binary Search Tree in JavaIn this tutorial, we will determine the height of a binary searchxa0tree (BST). We will applyxa0the recursivexa0method onxa0the height of the left and right subtrees, and then find the maximum of these two heights. How to Custom Helper Method in JavaIn this article, we are going to demonstrate a simple way to create a helper method in Java. How to Create an HTTPS Server in JavaThis tutorial demonstrates how to create a simple HTTPS server in Java.