How to convert a string to int in Golang

  • 14 August 2020
  • ADM

How to convert a string to int in Golang using strconv.Atoi and strconv.ParseInt methods.


How to convert int to string in Golang

  • 14 August 2020
  • ADM

How to convert int to string in Golang using strconv.Itoa and strconv.FormatInt methods.


JAXB Hello World Marshalling / Unmarshalling Example

  • 03 August 2017
  • ADM

JAXB Hello World Marshalling/Unmarshalling example: Object to XML and XML to Object.


How to deep clone an object in Java

  • 25 July 2017
  • ADM

How to deep clone an object in Java. The clone method from the parent object needs to clone each child object separately and added to the cloned parent object.


How to clone an object in Java

  • 25 July 2017
  • ADM

How to clone an object in Java. This method works only when the object cloned has only simple variable.


How to generate random numbers in a range using Java

  • 19 July 2017
  • ADM

How to generate random numbers in a range using Java. A simple method using SecureRandom, class.