Category: java
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 …
In Python, we can use * to repeat a string. For example: "abc" * 3 # "abcabcabc" "h" * 2 # "hh" We can use the following Java function …