Blinking LED on Raspberry Pi using Java

  • 21 March 2017
  • ADM

How to make a LED blinking on Raspberry Pi using Java. Simple sample code using pi4j library.


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.


Log4j Logging Levels

  • 08 February 2017
  • ADM

Log4j Logging Levels explained. For the standard levels, this is the order: ALL


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.


Java 8 forEach examples

  • 07 February 2017
  • ADM

Java 8 forEach examples. Map and list loop using lambda, method reference, stream and filter.


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.