🇰🇮 Java Enum: Kiribati’s Islands
Kiribati is divided into 3 main island groups and 1 capital. Here’s the Java enum
using ISO 3166-2:KI codes:
java
public enum KiribatiIsland {
ABEMAMA("KI-AB"),
ARANUKA("KI-AR"),
AUSTRALIS("KI-AU"),
BANABA("KI-BA"),
BERU("KI-BE"),
BUTARITARI("KI-BU"),
CAROLINE_ISLANDS("KI-CA"),
CENTRAL_TARAWA("KI-CT"),
EAST_TARAWA("KI-ET"),
FANNING("KI-FA"),
KIRIMATI("KI-KI"),
KIRITIMATI("KI-KT"),
MAKAYO("KI-MA"),
MARKEI("KI-MK"),
MAURI("KI-MR"),
MALOLO("KI-MO"),
NORFOLK_ISLAND("KI-NI"),
NORTH_TARAWA("KI-NT"),
TABUAER("KI-TA");
private final String code;
KiribatiIsland(String code) {
this.code = code;
}
public String getCode() {
return code;
}
}
🗃️ SQL Table and Insert Statements
sql
CREATE TABLE kiribati_islands (
id SERIAL PRIMARY KEY,
name VARCHAR(64) NOT NULL,
code VARCHAR(8) NOT NULL UNIQUE
);
INSERT INTO kiribati_islands (name, code) VALUES
('Abemama', 'KI-AB'),
('Aranuka', 'KI-AR'),
('Australis', 'KI-AU'),
('Banaba', 'KI-BA'),
('Beru', 'KI-BE'),
('Butaritari', 'KI-BU'),
('Caroline Islands', 'KI-CA'),
('Central Tarawa', 'KI-CT'),
('East Tarawa', 'KI-ET'),
('Fanning', 'KI-FA'),
('Kirimati', 'KI-KI'),
('Kiritimati', 'KI-KT'),
('Makayo', 'KI-MA'),
('Markei', 'KI-MK'),
('Mauri', 'KI-MR'),
('Malolo', 'KI-MO'),
('Norfolk Island', 'KI-NI'),
('North Tarawa', 'KI-NT'),
('Tabuaer', 'KI-TA');
✅ Summary
This setup covers the key islands of Kiribati using ISO 3166-2:KI codes, ideal for backend systems, Java applications, and SQL databases.