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 Fix java.net.SocketException: Software Caused Connection Abort: Recv Failed in JavaThis tutorial demonstrates how to solve the java.net.SocketException: Software caused connection abort: recv failed error in Java. How to Find Factors of a Given Number in JavaThis article talks about finding factors of a given number in Java. How to Fix Error: Java Lang Index Out of Bounds ExceptionThis tutorial serves the solution for the java.lang.indexoutofboundsexception error, also educates about the reason causing this with the help of code examples. How to Delete Folders Using JavaThis article talks about deleting folders using Java. How to Fix the java.io.IOException: Stream Closed ErrorThis tutorial educates about the reason and solutions of Java IO ioexception stream closed via code example. How to Fix Java.Lang.IllegalMonitorStateExceptionThis tutorial demonstrates how to solve the java.lang.IllegalMonitorStateException in Java. How to Iterate Through Enum Values in JavaThis article talks about iterating through enum values in Java. How to Fix Tomcat 404 ErrorThis tutorial demonstrates how to troubleshoot the tomcat 404 error in Java. How to Fix Java.Net.ConnectException: Connection Timed OutThis tutorial explains about the java.net.ConnectException: Connection timed out in Java. How to Fix Java Error java.lang.AbstractMethodErrorThis article will help you understand the identifier expected errors and how to solve them in Java. How to Fix Error: Non-Static Variable Count Cannot Be Referenced From a Static Context in JavaThis tutorial demonstrates the error: non-static variable count cannot be referenced from a static context in Java. How to Attempt to Invoke Virtual Method on a Null Object Reference Error in JavaThis tutorial demonstrates how to solve the attempt to invoke a virtual method on a null object reference error in Java. How to Fix the Error: Else Without if in JavaThis tutorial educates about the error: else without if in Java, highlights the causes and provides a solution with an example code. How to Fix Error: The System Cannot Find the File Specified in JavaThis tutorial demonstrates how to solve the error in Java: The system cannot find the file specified. How to Create Generic LinkedList in JavaThis article talks about creating generic LinkedList in Java. How to Fix the Java.Net.SocketException: Connection Reset in JavaIn today's article, we will discuss the reasons and solutions for the java.net.SocketException that might occur in Java. How to Fix Javac Is Not Recognized as an Internal or External Command, Operable Program or Batch FileIn the following article, we will look at the potential causes of the Java error javac is not recognized as an internal or external command and the potential solutions to this error. How to Fix Java.Security.InvalidKeyException: Illegal Key SizeThis tutorial demonstrates the java.security.InvalidKeyException: Illegal key size via code example. It also guides with possible reasons and its solution. How to Fix Java.Net.SocketTimeoutException: Connection Timed OutIn today's article, we will discuss java.net.SocketTimeoutException: Connection timed out. How to Fix Exception in Thread Main Java.Lang.NoClassDefFoundErrorIn today's post, we will talk about java.lang.NoClassDefFoundError that occurred in the main thread of Java. How to Fix Error: No Such Element Exception While Using Scanner in JavaThis tutorial demonstrates how to solve the No Such Element Exception error while using the scanner in Java. How to Fix Comparison Method Violates Its General Contract Error in JavaThis tutorial educates about the Comparison rules to highlight the possible reasons of comparison method violates its general contract error. It also provides a solution using a comparator and comparable interfaces. How to Delete Files in a Directory Using JavaThis article discusses deleting files present inside a directory using Java. How to Fix Java.SQL.SQLException: Access Denied for User Root@LocalhostThis tutorial demonstrates how to solve the java.sql.sqlexception: access denied for user root@localhost error in Java.