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.

JASYPT / CATATAN</>
Jasypt10 Apr 2009

How do I encrypt or decrypt bytes information using StandardPBEByteEncryptor?

This code demonstrate how to use the StandardPBEByteEncryptor class to encrypt and decrypt bytes information. package org.kodejava.jasypt; import org.jasypt.encryption.pbe.StandardPBEByteEncryptor; import java.util.Arrays; public class ByteEncryptorDemo { public static void main(String[] args) { String text = "The quick brown fox jumps over the lazy dog"; System.out.println("Text = " + Arrays.toString(text.getBytes())); StandardPBEByteEncryptor encryptor = new StandardPBEByte...

Wayan · 1 menit baca
CORE API / CATATAN</>
Core API06 Apr 2009

How do I format a message that contains number information?

This example show you how to use java.text.MessageFormat class to format a message that contains numbers. package org.kodejava.text; import java.text.MessageFormat; import java.util.Locale; public class MessageFormatNumber { public static void main(String[] args) { // Set the Locale for the MessageFormat. Locale.setDefault(Locale.US); // Use the default formatting for number. String message = MessageFormat.format("This is a {0} and […]

Wayan · 2 menit baca
CORE API / CATATAN</>
Core API02 Apr 2009

How do I format a message that contains time information?

Here we demonstrate how to use the java.text.MessageFormat class to format a message contains time information. package org.kodejava.text; import java.util.Date; import java.util.Calendar; import java.util.Locale; import java.text.MessageFormat; public class MessageFormatTime { public static void main(String[] args) { Date today = new Date(); Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.HOUR, 7); Date next7Hours = calendar.getTime(); // We want the […]

Wayan · 3 menit baca
CORE API / CATATAN</>
Core API29 Mar 2009

How do I format a message that contains date information?

This example demonstrate how you can use the java.text.MessageFormat class to format a message with a date information in it. package org.kodejava.text; import java.util.Date; import java.util.Calendar; import java.util.Locale; import java.text.MessageFormat; public class MessageFormatDate { public static void main(String[] args) { Date today = new Date(); Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DATE, 7); Date nextWeek = calendar.getTime(); […]

Wayan · 3 menit baca
APACHE POI / CATATAN</>
Apache POI25 Mar 2009

How do I check if a cell contains a date value?

The code below check if the first cell of an Excel file contains a date value. In Excel the cell type for date is returned as HSSFCell.CELL_TYPE_NUMERIC, to make sure if it contains a date we can use a utility method DateUtil.isCellDateFormatted(Cell cell), this method will check if the cell value is a valid date. […]

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.