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 API15 Apr 2008

How do I change date formatting symbols?

This example shows how we can change the date formatting symbols. In this example we change the month names and short month names and also the weekday names and short weekday names. Other than these two items we can also change other symbols such as the Era name and AM-PM string. package org.kodejava.text; import java.text.SimpleDateFormat; […]

Wayan · 2 menit baca
BASIC / CATATAN</>
Basic15 Apr 2008

How do I do bitwise exclusive OR operation?

package org.kodejava.lang; public class XorDemo { public static void main(String[] args) { int numberA = 16; int numberB = 32; // Operator ^ is used for doing bitwise exclusive OR operation int result = numberA ^ numberB; System.out.println(numberA + " ^ " + numberB + " = " + result); // Print the result in […]

Wayan · 1 menit baca
BASIC / CATATAN</>
Basic13 Apr 2008

How do I do bitwise OR operation?

package org.kodejava.lang; public class OrDemo { public static void main(String[] args) { int numberA = 16; int numberB = 4; // Operator "|" is used for doing bitwise OR operation int result = numberA | numberB; System.out.println(numberA + " | " + numberB + " = " + result); // Print the result in binary […]

Wayan · 1 menit baca
BASIC / CATATAN</>
Basic10 Apr 2008

How do I do bitwise AND operation?

package org.kodejava.lang; public class AndDemo { public static void main(String[] args) { int numberA = 16; int numberB = 16; // Operator "&" is used for doing bitwise AND operation int result = numberA & numberB; System.out.println(numberA + " & " + numberB + " = " + result); // Print the result in binary […]

Wayan · 1 menit baca
BEANS / CATATAN</>
Beans09 Apr 2008

How do I prevent bean’s property being serialized to XML?

package org.kodejava.bean; import java.beans.*; import java.io.BufferedOutputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; public class BeanToXmlTransient { private Long id; private String itemName; private String itemColour; private Integer itemQuantities; static { try { // In this block will change the attribute type of the // itemQuantities to transient, so it will be not serialized // to xml when […]

Wayan · 2 menit baca
CORE API / CATATAN</>
Core API06 Apr 2008

How do I convert LinkedList to array?

package org.kodejava.util; import java.util.LinkedList; import java.util.List; public class LinkedListToArray { public static void main(String[] args) { List<String> list = new LinkedList<>(); list.add("Blue"); list.add("Green"); list.add("Purple"); list.add("Orange"); // Converting LinkedList to array can be done by calling the toArray() // method of the List; String[] colors = new String[list.size()]; list.toArray(colors); for (String color : colors) { System.out.println("c...

Wayan · 1 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.