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 API31 Jul 2010

How do I create a Locale object using a variant?

Font differences may force you to use different characters on different platforms. You could then define the Locale objects with the variant codes to identify those differences. The variant codes conform to no standard. They are arbitrary and specific to your application. If you create Locale objects with variant codes only your application will know […]

Wayan · 2 menit baca
CORE API / CATATAN</>
Core API26 Jul 2010

How do I get all available Locale language codes?

When you want to internationalize your application, you need to know the language code and country code. These codes will be used as the properties file name (the file name must be ended in language_COUNTRY.properties). Here is an example that show how to get all supported language’s code. package org.kodejava.util; import java.util.Locale; public class LocaleCountryLanguageCode […]

Wayan · 2 menit baca
SPRING JDBC / CATATAN</>
Spring JDBC22 Jul 2010

How do I select records from database using JdbcTemplate?

In this example you will learn how to select records from the database using JdbcTemplate.queryForList() method. This method returns a List object which stores information selected from the table in a HashMap object. The key of the map is the table’s field names while the value of the map contains the corresponding table’s field value. […]

Wayan · 2 menit baca
SPRING JDBC / CATATAN</>
Spring JDBC19 Jul 2010

How do I delete records from database using JdbcTemplate?

The code below demonstrates on how to delete some records from database using the JdbcTemplate. package org.kodejava.spring.jdbc; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DriverManagerDataSource; import javax.sql.DataSource; public class DeleteDemo { public static final String DRIVER = "com.mysql.cj.jdbc.Driver"; public static final String URL = "jdbc:mysql://localhost/musicdb"; public static final String USERNAME = "root";...

Wayan · 2 menit baca
SPRING JDBC / CATATAN</>
Spring JDBC17 Jul 2010

How do I update records in the database using JdbcTemplate?

The example demonstrated below will show you how to use the JdbcTemplate.update() method for updating records in database. This method returns an integer value indicating number of records updated in the database when the query is executed. package org.kodejava.spring.jdbc; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.DriverManagerDataSource; import javax.sql.DataSource; import java.sql.Types; import java.util.Date; public clas...

Wayan · 2 menit baca
CORE API / CATATAN</>
Core API13 Jul 2010

How do I use the SortedMap interface?

package org.kodejava.util; import java.util.*; public class SortedMapDemo { public static void main(String[] args) { SortedMap<String, String> sorted = new TreeMap<>(); sorted.put("United States", "New York"); sorted.put("United Kingdom", "London"); sorted.put("Netherlands", "Amsterdam"); sorted.put("Japan", "Tokyo"); sorted.put("France", "Paris"); // Gets the first(lowest) key currently in this map String firstKey = sorted.firstKey(); // Gets the last (highest) key currently...

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.