Category: java
We can use the following Java command line program to print all loacal IP addresses of the computer. We iterate over all Net-Interfaces and get Inet Addresses. package com.helloacm; …
The Java Language does not have a inbuilt Pair class to hold the key-value pairs, thus here is a handy Pair Implementation that allows you to store key-value pair …
Often, we need to be able to convert Object to JSON (which is also called persistence of data) and then be able to convert it (JSON) back to Object. …
On Linux Shells, we can use “rm -fr” to remove a folder and its files recursively in sub directories. On windows, we can use “del /f / s” to …
In some cases, we would like to merge a few byte arrays into one. This is also known as concatenating the arrays. We can use the following Java utility/static …