How to check if directory is empty in Java

  • 19 January 2017
  • ADM

How to check if a directory is empty in Java. Example using list() method of File class.


How to get the current working directory in Java

  • 17 January 2017
  • ADM

How to get the current working directory in Java using user.dir system parameter.


How to calculate date/time difference in Java

  • 16 January 2017
  • ADM

How to calculate the date and time difference in Java using a simple method of division and remainder of division.


Client Server Socket example in Java

  • 13 January 2017
  • ADM

Client Server Socket example in Java. Client example reading the input from the console. Simple echo server example.


How to convert Char to String in Java

  • 23 November 2020
  • ADM

How to convert Char to String in Java using String.valueOf and Character.toString method.


How to install maven on macOS

  • 06 December 2016
  • ADM

How to install maven on macOS. Simple 5 steps: download, extract, path, maven settings and test.