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

Private Constructors in JavaThis article describes the use of private constructors in Java. Difference Between Static and Non-Static Methods in JavaThis tutorial categorizes static and non-static methods in Java while differentiating between their core properties and scope. After that, we are going to run three examples on both methods. List vs. Array in JavaThis article shows the differences between a list and an array in Java. Difference Between .Jsp and .Jspx File ExtensionsIn this tutorial, we categorically distinguish between .jsp and .jspx file extension commonly used in Java enabled dynamic web pages. We will show you how XHTML and Java code is handled in both files in two demo code examples. Difference Between void and Void in JavaThis article demonstrates the difference between Void and void in Java programming. It also educates how and where to use each of them. String[] in JavaThis tutorial demonstrates what String[] in Java is and how to use it. Java Multiline StringsThis article speaks about Java multiline strings and explains via different approaches that we can use to get the advantage of multiline strings using Java programming. FTP in JavaThis article teaches how to implement an FTP client in Java. Undefined Value in JavaThis article focuses on the concept of undefined in Java, and includes elements like its definition, purpose, code, similarity with null, and some real world examples. Selection Sort Algorithm in JavaThis tutorial demonstrates the selection sort algorithm in Java. Introduction to HashMap in JavaThis article provides an introduction to hash map in Java by explaining what the hash map is? It also demonstrates how and when to use hash map using Java Programming. Method Overloading in JavaThis tutorial gives a brief introduction to method overloading in Java. It also demonstrates how and when we can use method overloading in Java programming. The sqrt() Method in JavaThis tutorial demonstrates the use of sqrt() method using different code examples and educates about other techniques to find the square root of a number without using sqrt() method. The abs() Method in JavaThis tutorial educates about how to use the abs() method using different code examples in Java. Java Singleton ClassThis tutorial introduces Java singleton class. It also demonstrates why is it important, how to write Java singleton class using different design patterns. Java Out ParameterThis tutorial demonstrates if Java has something like C#'s out keyword for parameters. Class.forName() and Class.forName().newInstance() in JavaThis article will explain the differences between Class.forName() and Class.forName().newInstance() in Java. Java Radix Sort AlgorithmThis tutorial explains the radix sort algorithm in detail and demonstrates the implementation in Java. Difference Between Static and Final Variables in JavaIt shows the differences between static and final variables in Java. Also, the use of both variables will be discussed through code examples. Difference Between Private and Public Modifiers in JavaThis article shows the differences between private and public in Java. Delegation as a Substitute for Inheritance in JavaThis tutorial demonstrates delegation as the substitute for inheritance in Java. Gregorian Calendar Class in JavaIn this tutorial, we will briefly demonstrate java.util.GregorianCalendar class. After reading this article, you will be able to implement the most important methods used in this class such as java.util.Locale, java.util.TimeZone, Calendar.get() and others. Autoboxing and Unboxing in JavaThis tutorial demonstrates the use of autoboxing and unboxing in Java. Red-Black Tree in JavaIn this tutorial, we will explore Java's red and black trees. We will discuss their evaluation and attributes. First, we will demonstrate how it is used from the data structure perspective. Later, we will show you a few rotations, search, and node insertion using Java programs.