LANG PACKAGE / CATATAN</>↗Lang Package21 Mar 2022
The simplest way to get the Java version is by running the java -version command in your terminal application or Windows command prompt. If Java is installed and available on your path you can get information like below. java -version java version "17" 2021-09-14 LTS Java(TM) SE Runtime Environment (build 17+35-LTS-2724) Java HotSpot(TM) 64-Bit Server […]
GENERAL / CATATAN</>↗General16 Mar 2022
Java is the foundation of many products. It is no coincidence that this amazing programming language affects the cryptocurrency world (including Bitcoin). But what makes people buy USDT and how blockchain could help our world modernize for good? Let’s find out in this article. What is blockchain? Blockchain is an open, distributed ledger that can […]
JACKSON / CATATAN</>↗Jackson13 Feb 2022
In the following code snippet we will convert CSV into JSON string using Jackson JSON library. A comma-separated values is a delimited text, it uses comma to separate values. It starts with header on the first line, that will be the JSON key. Each subsequence lines is the data of the csv, which also contains […]
JSON-JAVA / CATATAN</>↗JSON-Java12 Feb 2022
In the following code snippet you will see how to convert a CSV file into JSON file and vice versa. We use the JSON-Java library CDL class to convert between CSV and JSON format. The CDL class provide the toJSONArray(String) and toString(JSONArray) methods that allows us to do the conversion between data format. In the […]
JSON-JAVA / CATATAN</>↗JSON-Java10 Feb 2022
In this example we convert CSV or CDL into JSON string. We are going to use the JSON-Java CDL (Comma Delimited Text) class. This class provides static methods that will convert a CSV into JSONArray or to convert a JSONArray into comma separated values. Here are what we do in the code snippet below: Create […]
GOOGLE GSON / CATATAN</>↗Google Gson10 Feb 2022
In the following example you’ll see how to format JSON string using the Google Gson library. Here are the steps: We create a Map. Put a couple key-value pairs to it. We put a string, a LocalDate object and an array of String[]. Create a Gson object using the GsonBuilder. This allows us to configure […]