In this tutorial, we show you how to set $JAVA_HOME environment variable on latest or older Mac OSX.
Apple recommends to set JAVA_HOME to “/usr/libexec/java_home“, for example :
The HttpURLConnection‘s follow redirect is just an indicator, in fact it won’t help you to do the “real” http redirection, you still need to handle it manually.
In this article, we show you how to use the Locale class to play around the list of countries.
A Comma-Separated Values (CSV) file is just a normal plain-text file, store data in column by column, and split it by a separator (e.g normally it is a comma “,”).
A funny Java example to create an ASCII art graphic. The concept is simple, get the image’s rgb color in “integer mode”, later, replace the color’s integer with ascii text.
In this example, we will show you how to login a website via standard Java HttpsURLConnection. This technique should be working in most of the login form.
This article shows you how to use Apache HttpClient to send HTTP GET/POST request.
In this article, we will show you two examples to make HTTP GET/POST request via following APIs
This example shows how to generate a simple report using DynamicReports and JasperReports. DynamicReports is a Java reporting library that allows you to produce report documents that can be exported into many popular formats. It is based on the well-known JasperReports library.
In this tutorial, we will show you how to use Java library – “Apache Commons Net” to get WHOIS data of a domain.
A short guide to show you how to convert a String with commas to a long type.
In this tutorial, we will show you how to convert a String to java.util.Date. Many Java beginners are stuck in the Date conversion, hope this summary guide will helps you in some ways.
In this article, we show you 2 examples to join two lists in Java.