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

Dynamic Method Dispatch in JavaThis tutorial shows the definition, advantages, and use of dynamic method dispatch in Java. Anonymous Comparator in JavaThis tutorial demonstrates how to create anonymous comparator in Java. Abstract Class Constructor in JavaThis tutorial demonstrates how to create the abstract class constructor in Java. Character Ignore Case in JavaThis tutorial demonstrates how to compare characters by ignoring the case in Java. Java Paint ComponentIn this article, we will have a closer look at the paint component method in Java. We will run a Java program to show you how does it work. The Angle Bracket in JavaThis tutorial demonstrates what does angle bracket(<>) means and how to use it in Java. Weak Reference Class in JavaThis tutorial demonstrates the weak reference class in Java. Inner Class and Static Nested Class in JavaIn computer programming, a class is a blueprint that allows us to create individual class objects to access data from either data members or member functions. In Java programming, a class is defined with the keyword class. We can also say that a class is a user-defined data type with custom modifications. Finite State Machine in JavaThis tutorial demonstrates how to implement a finite state machine in Java. Caesar Cipher in JavaThis tutorial demonstrates how to perform encryption and decryption using Caesar Cipher in Java. Bit Mask Operations in JavaIn Java, bitmask allows us to store more than one value inside a numerical variable. We treat every bit of the value as a separate value instead of a single variable as a whole. List of Rule Engines in JavaThis tutorial demonstrates the list of rule engines in Java. AES 256 in JavaThis tutorial demonstrates how to implement AES 256 in Java. Java Swing DateThis tutorial demonstrates how to work with date in Java Swing. File Chooser in JavaThis tutorial demonstrates how to choose a file in Java. Differences Between List and Arraylist in JavaA group of individual objects represented as a single unit is called a collection. In Java, the Collection is a framework with multiple defined interfaces and classes to represent a group of objects as a single unit. It allows us to manipulate and store a group of objects as a single unit. JavaFX Square ButtonThis tutorial tackles how to create a square button in JavaFX. Difference Between Repository Pattern and DAO in JavaThis tutorial is about understanding the difference between the repository pattern and the DAO pattern in Java. InvocationTargetException in JavaFXThis tutorial demonstrates how to solve invocationtargetexception in JavaFX. WebSocket Client in JavaThis tutorial demonstrates how to create a WebSocket client in Java. Working of StdOut in JavaThis tutorial demonstrates the working of the StdOut class in Java. Difference Between StringBuilder and StringBuffer in JavaIn this tutorial, we will discuss the differences between the StringBuilder and StringBuffer classes that are available in Java. Introduction to Interceptors in Java EEThis tutorial talks about an introduction to interceptors in Java EE. It speaks about interceptor methods, classes, and lifecycles. It also demonstrates how to create interceptor methods and interceptor classes. Trim() vs Strip() in JavaThis tutorial demonstrates the differences between trim() and strip() methods in Java.