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 Convert Object to Int in JavaThis article gives a brief about Object class and int type in Java and also discusses four ways to convert an object to an int in Java. How to Convert Stream to Array in JavaThis tutorial nails down different methods to convert Java 8 stream into an array How to Convert ArrayList to Set in JavaThis article introduces the conversion of ArrayList to Set in Java. How to Detect EOF in JavaWe'll introduce how to read input until the end of file is detected. How to Copy a 2D Array in JavaThis tutorial nails down different techniques to copy 2D arrays in Java. How to Validate Password in JavaIn this tutorial we'll be teaching you how to validate password in Java How to Encode String in UTF-8 in JavaThis tutorial describes how to encode string in UTF-8 in Java How to Check if String Contains Numbers in JavaThis article discusses the various ways in which we can find a number from a string in Java. How to Create Table in JavaThis article teaches ways to create tables in Java. How to Override the CompareTo Method in JavaThis article introduces how to override the compareTo method in Java. How to Format Java MessageThis tutorial covers the different ways we can format a message with the focus being on messages that have special characters such a single quote. How to Handle JSON Arrays in JavaThis article discusses the JSON framework, its structure, data types, and its use in Java. How to Create Makefile in JavaThis articles describes the usage of makefile in Java. How to Create Timer in JavaFxThis article introduces the process of adding and creating timer to the JavaFx Java. How to Implement HTTP Post in JavaThis article discusses about the implementation of HTTP Post in Java. How to Create Tic Tac Toe GUI in JavaThis tutorial teaches how to create a tic tac toe game in GUI in Java. How to Close a File in JavaThis article explains how to close a file in Java. How to Check if String Is Palindrome in JavaIn this article, we will go through the different ways in Java in which we can find if a string is a palindrome or not. We will use concepts like two pointers, string reversal, and recursion to find the solution. How to Change Java Version in MacOSThis article teaches how to change the Java version in MacOS. How to Stub in JavaThis article describes the topic of stub in Java. How to Sort a List Using stream.orted() in JavaThis article explains how to use the Stream sorted() method in Java. This also demonstrates how to use comparator for stream sorting user-defined lists. How to Get Resource URL and Content in JavaThis tutorial demonstrates how to get resource URL and read resource files in Java with the getResource() function. How to Convert Map Values Into a List in JavaIn this tutorial, we will execute three programs to show you how to convert hash map values into a list in Java. All examples are dynamic and contain useful methods to build a solid logic. How to Convert Collection to List in JavaThis article provides and explains various methods of converting a collection into a list in Java.