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 Show a JavaFX Popup in JavaThis article illustrates how to show a JavaFX Popup in Java. Mod of Negative Numbers in JavaThis article discusses three ways to find the mod of negative numbers in Java. How to Do Unit Testing in JavaThis article describes unit testing in Java and shows a simple example using JUnit testing framework. Remainder Operator in JavaThis article explains the remainder operator in Java with examples and outputs. We will execute three examples using the remainder operator and show how to build logic using this operator. How to Format Specifiers for Integral Numbers in JavaThis article introduces the format specifiers for integral numbers in Java. It also explains how to use them with different flags. Stack Trace in JavaThis tutorial demonstrates what a stack trace is and how to use it to debug the code in Java. Introduction to Java NIO PackageThis article introduces Java NIO package by explaining what it is. It also explains why and where we can use the Java NIO package. How to Create Java Progress Bar Using JProgressBar ClassThis tutorial demonstrates how can we create Java progress bar using JProgressBar class. Java Bitwise OperatorsThis tutorial introduces about Java bitwise OR, AND, XOR, Complement, and Shift operators. How to Resolve IllegalArgumentException in JavaWe will demonstrate how you can throw illegalargumentexceptions in Java programs. Also, we discuss how to get rid of the same exceptions from your Java programs. Finally, we will also use the try and catch blocks to handle it. How to Handle OutOfMemoryError Exception in JavaThis tutorial describes and demonstrates the OutOfMemoryError Exception in Java. Exception Types and Their Handling in JavaThis tutorial demonstrates the exception types in Java with different code examples. It also educates about the exception handling process. Java Jagged ArrayThis tutorial introduces about the Java jagged array. It educates about its memory representation as well as explains via code examples. Invalid Input Exception in JavaThis tutorial demonstrates how to create invalid input exception in Java. How to Create Alert Popup in JavaThis tutorial demonstrates how to show alert popups in Java. How to Zip Files in JavaThis tutorial demonstrates how to create a zip file in Java. How to Use the setAlignment Method in JavaFXThis tutorial will show how we can use the setAlignment method in JavaFX. How to Establish a Connection Pool in JDBCJDBC stands for Java Database Connectivity, it is an API of Java that connect the database and execute queries. The Java Database Connectivity is part of the Java Standard Edition (JavaSE). The JDBC drivers are used for the connection with database. How to Check if a Number Is Odd or Even in JavaThis article will help you in checking whether a number is odd or even using Java. JavaFX Region vs PaneThis tutorial demonstrates the difference between region and pane in JavaFX. How to Debug Java Codes RemotelyThis tutorial demonstrates how to debug a Java application remotely, also explains Java debug wire protocol. How to Fix Error: Could Not Reserve Enough Space for Object Heap Minecraft Error in JavaThis tutorial demonstrates the could not reserve enough space for object heap Minecraft error in Java. An Existing Connection Was Forcibly Closed by the Remote Host on MinecraftThis tutorial demonstrates the causes and solutions to the An Existing Connection Was Forcibly Closed by the Remote Host error when using Minecraft. SMS API in JavaThis tutorial demonstrates how to send SMS using an API in Java.