IO / CATATAN</>↗IO20 Apr 2020
The following code snippet show you how to create a tab delimited data file in Java. The tab character is represented using the \t sequence of characters, a backslash (\) character followed by the t letter. In the code below we start by defining some data that we are going to write to the file. […]
JAVA DATE TIME API / CATATAN</>↗Java Date Time API20 Apr 2020
The LocalDate and LocalTime are probably the first two classes from the Java 8 Date and Time API that you will work with. An instance of the LocalDate object is an immutable object representing a date without the time of the day and on the other way around the LocalTime object is an immutable object […]
JAVA DATE TIME API / CATATAN</>↗Java Date Time API18 Apr 2020
You need to create a holiday calendar for your application. One of the functionality is to include all Sundays of the year as a holiday for your calendar. The following code snippet will show you how to get all Sundays of the given year. First we need to find the first Sunday of the year […]
JAVA DATE TIME API / CATATAN</>↗Java Date Time API18 Apr 2020
The following code snippet help you find the first Sunday of the year, or you can replace it with any day that you want. To achieve this we can use the TemporalAdjusters.firstInMonth adjusters, these adjusters returns a new date in the same month with the first matching day-of-week. This is used for expressions like ‘first […]
GENERAL / CATATAN</>↗General16 Mar 2020
JavaScript is arguably the programming language out there, and specifically in terms of client-side programming languages, there are few alternatives to match it. Obfuscation involves deliberately creating source or machine code that is difficult for humans to understand, protecting the integrity of the initial programmers’ code. Programmers may deliberately obscure their code to protect its […]
LEARNING SQL / CATATAN</>↗Learning SQL18 Jan 2020
Introduction When you build up an application, you need a database (db) to save your data. It could be about your order, member, or transactional data. It really depends on business needs from the application that you build. Another purpose is you can initiate improvements based on huge data that you’ve already saved. Based on […]