How to copy files in Java

  • 18 January 2017
  • ADM

How to copy files in Java with three examples: Classic method with streams, using FileChannel class and using Files class.


How to convert Byte array to String in Java

  • 07 December 2016
  • ADM

How to convert Byte array to String in Java. Simple example using String class.


Autoboxing and Unboxing in Java

  • 12 October 2016
  • ADM

In Java, autoboxing is the automatic conversion between the primitive types and their corresponding object wrapper classes. Unboxing is the other way around.


How to get free disk space in Java

  • 05 April 2016
  • ADM

How to get free disk space in Java using File.getFreeSpace(), File.getTotalSpace() and File.getUsableSpace().


How to convert byte size into human readable format in java

  • 20 May 2016
  • ADM

How to convert byte sizes into human readable format using Java. Convert from Kilobyte to Yottabyte.