How to execute method using reflection in Java. Example with all cases, with/without parameters and returning/no returning a value.


How to create an object using reflection in Java. Simple examples for both situations provided: with parameters or without parameters.


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.


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 using Double.parseDouble and Double.valueOf methods. Simple example provided.


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