SupportWriter space ↗
A JOURNAL ABOUT TECHNOLOGY

Learn something new.
Write. Share.

A space to connect knowledge, one line of code a day.
Discover tutorials, ideas, and notes from a learning journey.

1967 notes & counting ↙
EDITOR’S PICK ↗
Pentesting

Planning Your First Web Application Pentest: Scope, Safety, and Evidence

Build a focused web pentest plan with clear authorization, realistic objectives, controlled testing, and evidence that developers can use.

D Putu Adi Guna Permana · 3 min read
FOR YOUR CURIOSITY

Latest notes.

REGEX / NOTES</>↗
Regex17 Dec 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 min read
REGEX / NOTES</>↗
Regex14 Dec 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 min read
BASIC / NOTES</>↗
Basic10 Dec 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 min read
JDOM / NOTES</>↗
JDOM06 Dec 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 min read
CORE API / NOTES</>↗
Core API02 Dec 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 min read
CORE API / NOTES</>↗
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 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

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

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.