Java Tutorials, Tips & Tricks

Java 8 Lambda Expressions Tutorial with Examples

Java 8 Lambda Expressions Tutorial with Examples

Java is a first-class object-oriented language. With the exception of primitive data types, everything in Java is an object. Even an array is an Object. Every class creates instances that are objects. There is...

Java 8 Default Methods Tutorial

Java 8 Default Methods Tutorial

Java 8 Default Method tutorial. Overview of Virtual extension method in Java 8. How to define default methods to interfaces in Java 8.

Java Locale List

Java Locale List

Here is a complete list of Locales in Java. This list is compiled using the mighty java.text.SimpleDateFormat class. The class SimpleDateFormat provides a method getAvailableLocales() which gives array of java.util.Locale objects. This is java...

How to Redirect Standard Output/Error in Java

System.out and System.err stream objects are mapped to “standard” output and error stream respectively. By default, Java display standard output/error on display console. Thus, when we print a statement using System.out: It prints the...

Read / Write Excel file in Java using Apache POI

Read / Write Excel file in Java using Apache POI

Apache POI is a powerful Java library to work with different Microsoft Office file formats such as Excel, Power point, Visio, MS Word etc. The name POI was originally an acronym for Poor Obfuscation...

How to update JSTL Locale dynamically

How to update JSTL Locale dynamically

When you use JSTL format tag <fmt:formatDate> and <fmt:formatNumber>, JSTL automatically takes care of locale resolution. Depending on the browser’s locale setting JSTL will display the date and numbers. You may want to override...