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.


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 convert String to long in Java

  • 23 November 2020
  • ADM

How to convert String to long in Java using Long.parseLong and Long.valueOf methods. Simple example provided.


How to convert String to int in Java

  • 23 November 2020
  • ADM

How to convert String to int in Java using Integer.parseInt and Integer.valueOf methods. Simple example provided.


How to read XML file in Java using DOM

  • 12 July 2016
  • ADM

How to read XML file in Java using DOM. 2 methods: one reading each element by the name and second parsing the entire DOMobject.