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 Get ArrayList of Int Array in JavaThis article is all about to get ArrayList of ints Java. How to Fix Java Was Started but Returned Exit Code=1This tutorial demonstrates how to solve the Java was started but returned exit code=1 error in Java. How to Fix the Java.Net.SocketException: Permission Denied in JavaThis tutorial demonstrates the java.net.SocketException: Permission denied error and how to fix it in Java. How to Fix the Public Keys in Reply and Keystore Don't Match Error in JavaThis tutorial illustrates the scenario causing the Public Keys in Reply and Keystore Don't Match error in Java. It also discloses the possible reasons and provides solutions to fix the error. Fix the Reach End of File While Parsing Error in JavaThis article introduces the reach end of file while parsing error in Java. Fix Java.Lang.NoClassDefFoundError: Could Not Initialize Class ErrorThis tutorial demonstrates the java.lang.noclassdeffounderror: could not initialize class error, discusses possible reasons, and provides the solution. The Arrow Operator -> in JavaThis article is all about the arrow operator in Java. Unchecked Cast in JavaThis article explains the unchecked cast warning in Java. How to Prevent Orphaned Case Error in JavaThis article discusses switch cases, orphaned case causes, prevention methods, and Java best practices. The setBounds() Method and Its Uses in JavaThis article briefly explains the setBounds() method and its uses in Java. Or Statement in Java: Your Guide to the Logical OR OperatorMaster the OR statement in Java – your ultimate guide to leveraging the logical OR operator for effective decision-making in your code. Explore examples and best practices to enhance your programming efficiency. How to Create and Read PDF in Java Using the iText LibraryIn this article, we discuss the iText library, its installation in Eclipse, and method to create and read PDF files using iText library in Java. How to Write Native Methods in JavaThis article demonstrates what the native methods are and how to write native methods in Java programs. How to Send Email in JavaWe will use JavaMail API to send Google and Microsoft accounts emails to any mailing system. You will get step-by-step guidance to set prerequisites, and we will also provide the links for necessary jar files. Finally, you will learn how to send java emails using two different libraries with three easy examples. JavaFX ThemesThis tutorial demonstrates how to use JavaFX themes. Best GUI Builders for Java Swing ApplicationsWe will classify the most popular graphical user interfaces (GUI) builders that you can use for Java Swing application development. Permanent Generation Heap Space and MetaspaceIn this article, we will explore the Java Virtual Machine's permanent space. Besides, we also discuss the reason behind out of memory error issues in older Java versions. Finally, we will list the differences between permanent generation and Metaspace in JVM. Sonar Java BinariesThis tutorial demonstrates how to set up the sonar java binaries in the environment. Overview of ThreadLocal in JavaThreadLocal is a powerful tool in the Java language that allows developers to create variables specific to each thread of execution. How to Parse CSV in JavaIt introduces several methods to parse a CSV file in Java How to Transform UML in JavaThis article introduces how to convert UML in Java. Queue offer vs add in JavaThis article introduces the difference between queue offer and add methods in Java. Enqueue and Dequeue in JavaUnderstanding Enqueue and Dequeue in Java and every other relevant information Servlet in JavaThis article introduces the servlet technology in Java.