How to sort objects with Comparable and Comparator in Java
How to sort objects with Comparable and Comparator in Java. Primitive array and list sorting. Java Object sorting with Comparable and Comparator.
Java Properties file example
How to work with java Properties files. Properties files are key values file. The tutorial contains both read and write examples.
Get and Set Field Value using Reflection in Java
How to get and set field value using reflection in Java. The tutorial covers all situations for a field: public, private and protected.
How to execute method using reflection in Java
How to execute method using reflection in Java. Example with all cases, with/without parameters and returning/no returning a value.
How to convert String to double in Java
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
How to convert String to float in Java using Float.parseFloat and Float.valueOf methods. Simple example provided.