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

Anagram in JavaThis tutorial will discuss finding if two strings are anagram in Java. Roman Numerals in JavaThis tutorial demonstrates how to convert integers to roman numerals in Java. Method Chaining in JavaThis tutorial demonstrates how to perform method chaining in Java. Java Throwable VS Exception ClassIn this article, we will learn the difference between the Throwable and Exception classes in Java. Java Iterator remove() MethodThis article explains how the Iterator's remove method removes the element from the collection in Java. Java OCRThis tutorial demonstrates the implementation of OCR in Java. Collections Binary Search in JavaIn this article, we will learn the collections.binarySearch() method in Java. We will see examples for both ascending and descending ordered lists. Java Synchronised VariableThis article explains how to synchronize or lock variables in Java. Fastest Sorting Algorithm JavaIn this article, we will learn the fastest array sorting algorithm in Java. How to Fix the `<identifier> expected` Error in JavaLearn what javac means by `<identifier> expected` and fix missing parameter names, misplaced statements, and invalid try-with-resources syntax. Java Aggregation vs CompositionIn Java, aggregation and composition define the relation between two classes which is established through their objects. MySQL Connector Java Maven DependencyMySQL Connector Java is a Java driver that allows you to connect to a MySQL database from your Java application. The Swap Method in JavaThis tutorial explains the swap method in java Multiset Data Structure in JavaMultisets are data structures that allow you to store multiple elements of the same value. JVM Arguments in JavaThis tutorial discusses about JVM arguments in Java. JavaFX vs SwingThis tutorial demonstrates the differences between JavaFX and Swing. Java Environment VariablesThis article explains how to set environment variables for Java in various operating systems Class Has Been Compiled by a More Recent Version of Java RuntimeIn this article, we will learn to resolve the class compiled by a more recent version of Java runtime error while compiling the Java code. JNDI and Its Uses in JavaThis article talks about JNDI (Java Naming and Directory Interface) and its uses. It also compares JNDI's and pros and cons. Java Gateway Process Exited Before Sending Its Port NumberThis tutorial demonstrates the Java gateway process exited before sending the driver its port number error in Java. Java Tail Call OptimizationThis tutorial talks about Java tail call optimization, highlights the reasons of not having TCO in Java and suggest some ways to simulate it. Java DecompilerThis article introduces how to work with Java decompiler