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

BiFunction Interface in JavaThis article introduces the BiFunction interface in Java. String Interning in JavaThis tutorial describes about Interning in Java. ImageIO in JavaThis articles describes the imageio class and how to use it to read and write an image in Java. Operator Overloading in JavaThis article discusses whether Java supports operator overloading or not. Anonymous Inner Class in JavaThis article talks about the Anonymous Inner class in Java and how it is useful. varargs in JavaThis article introduces the varargs in Java. Super Constructor in JavaThis article describes the use of super constructor in Java. Static Block in JavaThis article introduces the static block and its uses in Java. Null and Empty String in JavaThis article introduces the difference between null and empty string in Java. JFileChooser Examples in JavaThis article shows jfilechooser examples in Java. The volatile Keyword in JavaThis article discusses the volatile keyword in Java, its advantages and disadvantages, and uses with example. Java Graph LibrariesThis article describes how to create a graph using the graph libraries in Java. Logical Operators and Short Circuit in JavaThis article explains java's logical operators, what short-circuiting is in java and how it occurs. It further explains the difference between logical and bitwise operators and explains the advantages and disadvantages of short-circuiting in java. Java Dead Code WarningThis article discusses the dead code warning and unreachable code in Java. It also compares Java's dead code, warning, and unreachable code error. Stack Pop Push in JavaThis article tells the ways to implement the pop and push methods in stack in Java. In-Memory Cache in JavaThis article discusses about the two libraries to use for in-memory cache in Java. Method Hiding in JavaThis article goes through the concept of method hiding in Java. Iterator and Iterable Interfaces in JavaIn this tutorial, we explain the difference between iterator and iterable. Then, we will create interfaces using iterable and iterator methods in Java. Our interface will override both methods. Difference Between break and continue Statements in JavaThis tutorial demonstrates the differences between break and continue statements in Java. Union and Intersection of Two Java SetsThis article will demonstrate how to perform union and intersection of two sets in Java. We will use the updated function and avoid dirty code instead of manual integration and traditional methods. Merge Sort Using ArrayList in JavaThis article describes steps to implement merge sort using ArrayList in Java. Huffman Code in JavaThis tutorial demonstrates the Huffman code data compression algorithm in Java. String Matches Regex in JavaIn this article, we will be talking about the methods called matches() and regionMatches() of the String class. The intValue() Method in Java and Primitive Data Types ConversionWe will discuss the intValue method and learn its scope. Also, we will find out the core logic behind primitive data types and learn the difference between int and integer. Finally, we also execute a few real-time conversion examples.