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 API05 Nov 2010

How do I start a thread execution?

To make a thread begin its execution, call the start() method on a Thread or Runnable instance. Then the Java Virtual Machine will calls the run method of this thread. The snippet below is showing how to create a thread by implementing the Runnable interface. package org.kodejava.lang; public class ThreadRun implements Runnable { public static […]

Wayan · 1 menit baca
REGEX / CATATAN</>
Regex03 Nov 2010

How do I use quantifier in regex?

A quantifier following a subsequence of a pattern determines the possibilities for how that subsequence of a pattern can repeat. Quantifiers allow you to specify the number of occurrences to match against. Quantifiers X? : X, once or not at all X* : X, zero or more times X+ : X, one or more times […]

Wayan · 3 menit baca
REGEX / CATATAN</>
Regex03 Nov 2010

How do I use capturing groups in regex?

Capturing groups are a way to treat multiple characters as a single unit. They are created by placing the characters to be grouped inside a set of parentheses. For example, the regular expression (dog) creates a single group containing the letters d, o and g. Regular expressions can also define other capturing groups that correspond […]

Wayan · 2 menit baca
REGEX / CATATAN</>
Regex02 Nov 2010

How do I use logical OR operator in regex?

You can use the | operator (logical OR) to match characters or expression of either the left or right of the | operator. For example the (t|T) will match either t or T from the input string. package org.kodejava.regex; import java.util.regex.Matcher; import java.util.regex.Pattern; public class LogicalOrRegexDemo { public static void main(String[] args) { // Define […]

Wayan · 1 menit baca
REGEX / CATATAN</>
Regex02 Nov 2010

How do I use predefined character classes regex?

In regex, you also have a number of predefined character classes that provide you with a shorthand notation for commonly used sets of characters. Here are the list: Predefined Class Matches . Any character d Any digit, shorthand for [0-9] D A non digit, [^0-9] s A whitespace character [^s] S Any non whitespace character […]

Wayan · 1 menit baca
REGEX / CATATAN</>
Regex02 Nov 2010

How do I do boundary matching in regex?

If you want to find the occurrence of a pattern in more precise position, for example at the beginning or the end of line, you can use boundary matcher. Boundary matcher are special sequences in a regular expression when you want to match a particular boundary. Here are the list: Matcher Matches ^ The beginning […]

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.