Enum examples in Java

  • 24 April 2017
  • ADM

Enum examples in Java. Simple enum usage. How to convert String to Enum object. Enum object with fields and methods.


How to convert XML file into properties data in Java

  • 04 April 2017
  • ADM

The java.util.Properties class come with a loadFromXML() method to convert an XML file to properties data.


JUnit 3 vs JUnit 4 Comparison

  • 01 March 2017
  • ADM

Junit 3 vs Junit 4 Comparison. Junit 4 is introducing new features like annotations, static import, timeout.


Log4j 1.2.x basic example

  • 10 February 2017
  • ADM

This tutorial presents log4j 1.2.x basic examples. How to log a message and an exception.


How to send emails using JavaMail

  • 08 February 2017
  • ADM

How to send emails using JavaMail. Simple example using a gmail account and proxy settings if needed.


How to sort objects with Comparable and Comparator in Java

  • 04 February 2017
  • ADM

How to sort objects with Comparable and Comparator in Java. Primitive array and list sorting. Java Object sorting with Comparable and Comparator.