GRADLE / CATATAN</>↗Gradle21 Des 2015
In this post we will learn how to install Gradle in OS X. The following steps will guide our installation process to make Gradle available in our OS X machine. But before we start let’s take a look at the definition from wikipedia about Gradle. Gradle is an open source build automation system that builds […]
CORE API / CATATAN</>↗Core API20 Des 2015
This example will show you how to implement the equals() and hashCode() object using java.util.Objects class. The Objects class provides a set of utility methods to work with object such as comparing two objects for equality and calculating the hashcode. Other methods include object null check methods, object to string method, etc. To demonstrate equals() […]
XML / CATATAN</>↗XML18 Des 2015
The javax.xml.validation package provides an API for XML documents validation. The validation process verify that an XML document is an instance of a specified XML schema file or XSD file. In this example we are going to validate if the records.xml file below ins an instance of the records.xsd schema. First we will create the […]
JAVA 8 / CATATAN</>↗Java 815 Nov 2015
The java.time.DayOfWeek enums in Java 8 Date-Time API describes the days of the week. The enum has constants value from DayOfWeek.MONDAY through DayOfWeek.SUNDAY. These enums also have their integer values where 1 is equal to MONDAY and 7 is equal to SUNDAY. In the code snippet below you can see a couple usage of the […]
JAVA 8 / CATATAN</>↗Java 815 Nov 2015
In your Java application you want to format date-time objects using the new date and time API introduced in JDK 8. A solution to this problem is to use the java.time.format.DateTimeFormatter. The DateTimeFormatter class provides formatter for printing and parsing date-time objects. With this class we can format the date-time objects using a predefined constants, […]
CORE API / CATATAN</>↗Core API19 Jul 2015
As we know an array in Java is a fixed-size object, once it created its size cannot be changed. So if you want to have a resizable array-like object where you can insert an element at a given position you can use a java.util.List object type instead. This example will show you how you can […]