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 Do String Interpolation in JavaThis article introduces how to do string variable interpolation in Java. How to Do Power in JavaThis article is all about raising a number to a power in Java. How to Replace Character in String at Index in JavaThis article shows the methods to replace a character in a string at index in Java How to Get the Last Character of a String in JavaIt teaches about the few ways to get the last character of a string in Java How to Delete an Object in JavaIt introduces how to delete a Java object with two examples. How to Add Char to String in JavaThis tutorial talks about the methods that can be used to add a char to a string in Java How to Initialize ArrayList in JavaThe article introduces methods to initialize an ArrayList in one line How to Get Char Array's Length in JavaThis article introduces how to get char array's length in Java. How to Convert Inputstream to Byte Array in JavaThis article introduces how to convert inputstream to byte array in Java. How to Convert Char Array to Int in JavaThis article introduces how to convert char array to a single int in Java. How to Check if an Array Contains Int in JavaThis article introduces how to check if int array contains an int value in Java. How to Replace Multiple Characters in String in JavaThis article explains replaceAll, replace, and replaceFirst methods that can be used to replace multiple characters in a string. How to Replace Character in String in JavaThis article introduces methods of replacing character in a String in Java How to Kill Thread in JavaThis article shows two methods to kill or stop a thread in Java How to Iterate Over Characters of String in JavaThis tutorial teaches how to apply the for-each loop to every character in a string. How to Initialize List of String in JavaThis tutorial explains how to initialize List of string in Java How to Get Thread Id in JavaThis article goes through the methods to get the thread's id in Java. How to Convert String to Timestamp in JavaIt shows two methods to convert a string to timestamp in Java How to Convert String to Boolean in JavaThis article shows the methods to convert a string value to a boolean in Java How to Convert Enum to String in JavaThis tutorial explains two methods of enum class to convert enum to string in Java. How to Generate Random Character in JavaThis tutorial introduces how to generate a random character in Java. How to Compare Characters in JavaThis article introduces how to compare characters in Java How to Switch on Enum in JavaIt explains the two ways to use switch on Enum in Java How to Subtract Dates in JavaThis tutorial explains how to subtract two dates in Java.