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.


GET/POST request with Apache HttpClient

  • 27 January 2017
  • ADM

GET/POST request tutorial using Apache HttpClient. The tutorial is using httpbin.org test server.


How to decompress files from ZIP format using Java

  • 25 January 2017
  • ADM

How to decompress files from ZIP format using Java. The example will unzip all files to a specific folder.


How to compress files in ZIP format using Java

  • 24 January 2017
  • ADM

How to compress files in ZIP format using Java. The example takes a folder or file and adds all the files and sub-folders.


How to copy directory in Java

  • 21 January 2017
  • ADM

How to copy a directory and all sub-directories or files in Java. The recursive method used to traverse all the subdirectories.