How to generate a random int in Golang
In Golang there a are two libraries for generating random integers, one is a pseudo-random number generator (package math/rand
) and the second one is cryptographically secure random number generator (package crypto/rand
)
Java Custom Annotations Example
How to create Java Custom Annotation. A simple example of creating Annotations in Java and usage by calling the Reflection API.
How to execute shell command from Java
How to execute a shell command from Java using Runtime.getRuntime().exec()
method.
How to generate UUID / GUID in Java
How to generate UUID / GUID in Java using java.util.UUID
class, UUID.randomUUID()
method.
How to marshal a JAXB object into org.w3c.dom.Document
How to marshal a JAXB object into org.w3c.dom.Document
using Transformer class and formatted console print.
Search
Other Posts
Follow Us On