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 Set Java Logger LevelsThis tutorial demonstrates how to logger levels in Java. How to Calculate Median of an Array in JavaIn this article, we will show you how to calculate the median of an array. We will take two different approaches to calculate the median of a Java array. Byte Buffer Class in JavaThis article will help you understand how a Java Virtual Machine deals with a byte buffer class. We will also signify its scope and list out its major parameters. Finally, we will run two Java programs to demonstrate what we discussed. How to Compare Content of Two Files in JavaThis tutorial demonstrates how to compare the content of two files in Java. How to Create a Mouse Listener in JavaThis tutorial demonstrates how to create a mouse listener in Java. How to Convert Hex to String in JavaThis tutorial tackles how to convert a hex string to a text string in Java. How to Align Text in JavaThis tutorial demonstrates how to align text in Java. How to Pretty Print XML in JavaThis tutorial demonstrates how to pretty print XML in Java. How to Create REST Client in JavaThis article explains the utility of a Java Rest client and how it can be created in simple ways using light weight and efficient frameworks. How to Simplify or Reduce Fractions in JavaThis article discusses how to simplify and reduce fractions in Java. In Mathematics, fraction is a number expressed as a quotient. It is represented in a/b form where a is the dividend (numerator) and b is the divisor (denominator). How to Overwrite a File in JavaThis tutorial demonstrates how to overwrite a file in Java. How to Generate All Possible Combinations in JavaThis tutorial demonstrates how to generate all possible combinations in Java. How to Convert Decimal to Binary in JavaThis tutorial demonstrates how to convert decimal to binary in Java. How to Serialize Object to String in JavaThis tutorial demonstrates how to serialize objects to string in Java. How to Create an HTTP Proxy Server in JavaThis tutorial demonstrates how to create a Proxy Server in Java. How to Use KeyEvent in JavaFXThis tutorial will show how we can create a key event and execute a simple code when a user presses a key in JavaFX. How to Move Objects in JavaFXThis tutorial will discuss how we can move an object or shape in JavaFX. How to Use the Scene Builder in JavaFXThis tutorial will see how we can use the Scene Builder for JavaFX. How to Create a Temperature Converter in JavaThis tutorial demonstrates how to create a temperature converter in Java. How to Convert ArrayList to ObservableList in JavaFXThis tutorial will discuss how we can convert the ArrayList to ObservableList in JavaFX. How to Get Selected Item From a ChoiceBox in JavaFXThis tutorial demonstrates how to get a selected item from a choicebox in JavaFX. The setOnAction Method in JavaFXThis tutorial will discuss the setOnAction method in JavaFX. The setCellValueFactory Method in JavaFXThis tutorial will discuss the use of the setCellValueFactory method in JavaFX. How to Use of SwingUtilities.invokeLater() in JavaSwingUtilities.invokeLater executes the runnable on the Abstract Window Toolkit event-dispatching thread. We do that because Swing data structures are not thread-safe.