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 Java Inline FunctionThis tutorial demonstrates how to implement an inline function in Java. How to Split a List Into Chunks in JavaThis tutorial demonstrates how to split a list into multiple same-sized chunks in Java. How to Remove a Node From a Linked List in JavaThis tutorial demonstrates how to remove a node from a linked list in Java. How to Find Memory Leak in JavaThis article explains how to find memory leak in Java. How to Count Repeated Elements in an Array in JavaThis tutorial demonstrates the method to count the repeated elements in an array in Java. How to Change Java Version in EclipseThis article teaches us to change the Java version for the current project in Eclipse. How to Build Tools in JavaIn this article, we will learn what is build tools and discuss some popular build tools for Java. How to Force Garbage Collection in JavaThis tutorial demonstrates how to force garbage collection in Java. How to Call Webservices in JavaThis article explains how to do a SOAP Web Service call from a Java class. How to Use Java Synchronized Block for ClassIn this article, we'll explain about synchronization block class in Java. Moreover, we'll discuss the details about synchronization, which will help us understand more about synchronization and synchronization blocks using Java. How to Set JAVA_HOME on macOSIn this article, we will learn about the steps to set JAVA_HOME environment variable on your systems especially on Mac X and Mac 11. How to Generate Barcodes in JavaWe can create all types of barcodes with the help of Java libraries like zxing for generating barcode images and itextpdf for generating barcodes in PDF format. How to Replace Space With %20 in JavaThis article explains to replace a particular character with a new character or string in Java. How to Implement Thread-Safe Lazy Initialization in JavaThis article explains how to implement thread-safe lazy initialization in Java. How to Fix Java.Lang.OutOfMemoryError: Unable to Create New Native ThreadThis article talks about unable to create new native thread error in Java. How to Fix Unreported Exception Must Be Caught or Declared to Be ThrownThis tutorial explains about the Unreported Exception error in Java. How to Restart a Program in JavaIn Java, methods can be called recursively to restart a program again. Runtime Exception in JavaThis article talks about runtime exception in Java. How to Fix Java.Lang.VerifyError: Bad Type on Operand StackThis article talks about java.lang.VerifyError in Java. How to Make Private Inner Class Member Public in JavaTo make a private inner class public makes the code more reusable, flexible, and easy to test and debug. How to Connect an FTPS Server in JavaFile Transfer Protocol Secure (FTPS) is a secure version of File Transfer Protocol (FTP), which uses SSL/TLS encryption to protect the data being transferred between a client and a server. How to Fix the 'No Java Virtual Machine Was Found' Error in EclipseThis error message indicates that Eclipse cannot find a Java Virtual Machine (JVM) installed on your system, which is necessary to run the application. How to Create an X.509 Certificate Using JavaX.509 is a widely-used standard for public key infrastructure (PKI) and is used to secure and validate transactions over the internet. How to Fix the Missing Server JVM Error in JavaJVM error occurs when the JVM cannot be found on the system where the application is being run.