Jun 202018

ADM

How to execute shell command from Java

  • 20 June 2018
  • ADM

How to execute a shell command from Java using Runtime.getRuntime().exec() method.

Jun 192018

ADM

How to generate UUID / GUID in Java

  • 19 June 2018
  • ADM

How to generate UUID / GUID in Java using java.util.UUID class, UUID.randomUUID() method.

Apr 042018

ADM

How to read XML file in Java using SAX Parser

  • 04 April 2018
  • ADM

How to read XML file in Java using SAX Parser.

Mar 232018

ADM

How to marshal a JAXB object into org.w3c.dom.Document

  • 23 March 2018
  • ADM

How to marshal a JAXB object into org.w3c.dom.Document using Transformer class and formatted console print.

Mar 052018

ADM

How to split a string in Java

  • 05 March 2018
  • ADM

How to split a string in Java using both variants of the split() method: split(String regex) and split(String regex, int limit).

Mar 052018

ADM

How to get network interfaces in Java

  • 05 March 2018
  • ADM

How to get network interfaces in Java using NetworkInterface class.