How to delete directory in Java

  • 19 October 2016
  • ADM

How to delete directory in Java using File.delete() method. Recursive delete is applied if the directory is not empty.


GET/POST request with HttpURLConnection in Java

  • 17 October 2016
  • ADM

How to send GET and POST requests using standard HttpURLConnection class from Java. Simple examples for both methods.


How to convert String to double in Java

  • 14 October 2016
  • ADM

How to convert String to double in Java using Double.parseDouble and Double.valueOf methods. Simple example provided.


How to convert String to float in Java

  • 13 October 2016
  • ADM

How to convert String to float in Java using Float.parseFloat and Float.valueOf methods. Simple example provided.


How to convert String to InputStream in Java

  • 14 October 2016
  • ADM

Simple example how to convert a String object InputStream object in Java using ByteArrayInputStream class.


Display double in 2 decimal points in Java

  • 13 October 2016
  • ADM

This tutorial will show you how display double in 2 decimal points in Java using String format method and DecimalFormat class.