ECLIPSE / NOTES</>↗Eclipse16 Jan 2019
Eclipse is the most popular Java Integrated Development Environment (IDE). Just check out the survey result. **Image Source: **IProgrammer Here is one more for you. Image Source Qiita Some people say that Eclipse is dying. However, we can see that many developers still prefer using Eclipse. Let’s get Eclipse popularity part out of the way […]
PROJECT LOMBOK / NOTES</>↗Project Lombok20 Dec 2018
By default, when we use the Lombok’s @Getter and @Setter annotations the getters and setters will be created with public access modifier. We can however change the access modifier by setting the AccessLevel of the @Getter and @Setter annotations. The available choices for the access level are AccessLevel.PUBLIC, AccessLevel.PROTECTED, AccessLevel.PACKAGE, AccessLevel.PRIVATE. These enum values correspond […]
PROJECT LOMBOK / NOTES</>↗Project Lombok20 Dec 2018
The following code snippet show you how to use Project Lombok‘s @Getter and @Setter annotations to generate getters and setters method in your POJO (plain old java objects) classes. Using these annotations remove the need to manually implements the mutator and accessor methods. Although most IDE allows you to generate these methods, using Lombok makes […]
JSON-JAVA / NOTES</>↗JSON-Java30 Aug 2018
The following code snippet show you how to create JSON string using JSON-Java library. Create an instance of JSONObject and use the put() method to create a key-value pair for the JSON string. The JSONArray object can be used to create an array of list of values to the JSON string, we also use the […]
JSON-JAVA / NOTES</>↗JSON-Java30 Aug 2018
In this example we are going to use the JSON-Java (org.json) library to read or parse JSON file. First we start by getting the InputStream of the JSON file to be read using getResourceAsStream() method. Next we construct a JSONTokener from the input stream and create an instance of JSONObject to read the JSON entries. […]
KOTLIN / NOTES</>↗Kotlin13 May 2018
To write Kotlin program you will need an IDE (Integrated Development Environment). One of the IDE that you can use is the IntelliJ IDEA CE (Community Edition). It comes with Kotlin Java Runtime Library, so you don’t need to install it separately. To run Kotlin program you will need to install the latest JDK (Java […]