Ruang penulis
SEBUAH JURNAL TENTANG TEKNOLOGI

Belajar hal baru.
Tulis. Bagikan.

Ruang untuk merangkai pengetahuan, satu baris kode setiap hari.
Temukan tutorial, ide, dan catatan dari perjalanan belajar.

1914 catatan & terus bertumbuh
PILIHAN EDITOR
Java

Memahami Java Stream: olah koleksi dengan lebih ringkas

Pelajari alur filter, map, dan collect untuk mengolah data Java dengan kode yang mudah dibaca.

D Tim Diary Coding · 1 menit baca
UNTUK RASA INGIN TAHUMU

Catatan terbaru.

CORE API / CATATAN</>
Core API20 Agt 2008

How do I convert Properties into Map?

package org.kodejava.util; import java.util.Properties; import java.util.Map; import java.util.HashMap; import java.util.Set; public class PropertiesToMap { public static void main(String[] args) { // Create a new instance of Properties. Properties properties = new Properties(); // Populate properties with a dummy application information properties.setProperty("app.name", "HTML Designer"); properties.setProperty("app.version", "1.0"); properties.setProperty("app.vendor", "HTM...

Wayan · 1 menit baca
APACHE COMMONS / CATATAN</>
Apache Commons16 Agt 2008

How do I sort files based on their last modified date?

This example demonstrates how to use Apache Commons IO LastModifiedFileComparator class to sort files based on their last modified date in ascending and descending order. There are two comparators defined in this class, the LASTMODIFIED_COMPARATOR and the LASTMODIFIED_REVERSE. package org.kodejava.commons.io; import static org.apache.commons.io.comparator.LastModifiedFileComparator.*; import java.io.File; import java.util.Arrays; public class FileSortLastModified { public sta...

Wayan · 2 menit baca
CORE API / CATATAN</>
Core API13 Agt 2008

How do I create a multithreaded program?

Java language which was there when the language was created. This multithreading capabilities can be said like running each program on their on CPU, although the machine only has a single CPU installed. To create a Thread program in Java we can extend the java.lang.Thread class and override the run() method. But as we know […]

Wayan · 2 menit baca
CORE API / CATATAN</>
Core API13 Agt 2008

How do I get the list of file system root?

The code below demonstrates how to obtain file system root available on your system. In Linux, you will have a single root (/) while on Windows you could get C:\ or D:\ that represent the root drives. package org.kodejava.io; import java.io.File; public class FileSystemRoot { public static void main(String[] args) { // List the available […]

Wayan · 1 menit baca
CORE API / CATATAN</>
Core API08 Agt 2008

How do I check if a directory is not empty?

package org.kodejava.io; import java.io.File; public class EmptyDirCheck { public static void main(String[] args) { File file = new File("D:/Downloads"); // Check to see if the object represent a directory. if (file.isDirectory()) { // Get list of file in the directory. When its length is not zero // the folder is not empty. String[] files = […]

Wayan · 1 menit baca
TAGLIB / CATATAN</>
Taglib08 Agt 2008

How do I format a date in a JSP page?

This example show how to format date in JSP using format tag library. We create a date object using the <jsp:useBean> taglib. To format the date we use the <fmt:formatDate> taglib. We assign the value attribute to the date object, set the type attribute as date and define the pattern how the date will be […]

Wayan · 2 menit baca

Pengetahuan tumbuh ketika dibagikan.

Simpan rasa ingin tahu. Selalu ada hal baru untuk dipelajari.

Jelajahi catatan ↗
Putu Adi Guna Permana
TENTANG PENULIS

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Penulis dan pendiri Diary Coding — berbagi catatan, tutorial, dan pengalaman seputar pemrograman untuk siapa pun yang ingin terus belajar.