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.

REGEX / CATATAN</>
Regex17 Des 2007

How do I create a string search and replace using regex?

In this example you’ll see how we can create a small search and replace program using the regular expression classes in Java. The code below will replace all the brown words to red. package org.kodejava.regex; import java.util.regex.Pattern; import java.util.regex.Matcher; public class StringReplace { public static void main(String[] args) { String source = "The quick brown […]

Wayan · 1 menit baca
REGEX / CATATAN</>
Regex14 Des 2007

How do I do regular expression in Java?

This example demonstrates how we do regular expression in Java. The regular expression classes is in the java.uti.regex package. The main class including the java.util.regex.Pattern class and the java.util.regex.Matcher class. In this example we are only testing to match a string literal if it is exists in the following sentence, we are searching the word […]

Wayan · 2 menit baca
BASIC / CATATAN</>
Basic10 Des 2007

Java Programming Keywords Summary

Here are the summary of the available keywords in the Java programming language. Keywords are reserved words that already taken and internally used by Java, so we cannot create variables and name it using this keyword. Keyword Meaning abstract an abstract class or method assert used to locate internal program errors boolean the Boolean type […]

Wayan · 3 menit baca
JDOM / CATATAN</>
JDOM06 Des 2007

How do I read an XML document using JDOM?

This example provide a small code snippet on how to use JDOM to parse an XML document, iterates each of the element and read the element or attributes values. To play with this example you have to have the JDOM library. You can download it from JDOM website. package org.kodejava.jdom; import org.jdom2.Document; import org.jdom2.Element; import […]

Wayan · 3 menit baca
CORE API / CATATAN</>
Core API02 Des 2007

How do I sort items of an ArrayList?

This example shows you how we can sort items of an ArrayList using the Collections.sort() method. Beside accepting the list object to be sorted we can also pass a Comparator implementation to define the sorting behaviour such as sorting in descending or ascending order. package org.kodejava.util; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; public […]

Wayan · 1 menit baca
CORE API / CATATAN</>
Core API28 Nov 2007

How do I sort array values in case-insensitive order?

By default, when sorting an arrays the value will be ordered in case-sensitive order. This example show you how to order it in case-insensitive order. package org.kodejava.util; import java.util.Arrays; public class SortArrayCaseSensitivity { public static void main(String[] args) { String[] teams = new String[5]; teams[0] = "Manchester United"; teams[1] = "chelsea"; teams[2] = "Arsenal"; teams[3] […]

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.