Java 8 Streams filter examples

  • 06 July 2017
  • ADM

Java 8 Streams filter examples. Simple examples comparing the classic approach pre-Java 8 and using the new Java 8 functionalities.


6 methods how to loop a Map in Java

  • 15 June 2017
  • ADM

How to loop a Map in Java. 6 different methods to loop through a map. The main difference is the looping method.


How to sort TreeMap in descending order in Java

  • 15 June 2017
  • ADM

How to sort TreeMap in descending order in Java. A simple example using a string as keys.


Thread Semaphore and Mutex in Java

  • 30 May 2017
  • ADM

Thread Semaphore and Mutex in Java. Semaphore restrict the access to a resource for limited numbers of threads while mutex restricts the access to a single thread.


SWT Hello World Application

  • 01 June 2017
  • ADM

SWT Hello World Application. A simple application that can be used as a base for any SWT application.


File Path, Absolute Path and Canonical Path in Java

  • 22 May 2017
  • ADM

File Path, Absolute Path and Canonical Path in Java. A simple example using both cases of file object: created using absolute path and created using a relative path.