🇬🇲 Java Enum: The Gambia’s Regions
The Gambia is divided into 5 regions. Here’s the Java enum
using ISO 3166-2:GM codes:
java
public enum GambiaRegion {
BANJUL("GM-BJ"),
BRIKAMA("GM-BK"),
KEREWAN("GM-KW"),
KUNTYANG("GM-KY"),
LOWER_RIVER("GM-LR");
private final String code;
GambiaRegion(String code) {
this.code = code;
}
public String getCode() {
return code;
}
}
🗃️ SQL Table and Insert Statements
sql
CREATE TABLE gambia_regions (
id SERIAL PRIMARY KEY,
name VARCHAR(64) NOT NULL,
code VARCHAR(8) NOT NULL UNIQUE
);
INSERT INTO gambia_regions (name, code) VALUES
('Banjul', 'GM-BJ'),
('Brikama', 'GM-BK'),
('Kerewan', 'GM-KW'),
('Kuntjang', 'GM-KY'),
('Lower River', 'GM-LR');
✅ Summary
This setup covers all 5 regions of The Gambia using ISO 3166-2:GM codes, ideal for backend services, Java applications, and SQL databases.