✅ Enum Representation in Java
Suriname is divided into 10 administrative districts. Below is a Java enum
representing each district with a standard district code:
java
public enum District {
BROKOPONDO("BR"),
COMMEWIJNE("CM"),
CORONIE("CR"),
MAROWIJNE("MA"),
NICKERIE("NI"),
PARAMARIBO("PM"),
PARA("PA"),
SARAMACCA("SA"),
SIPALIWINI("SI"),
WANICA("WA");
private final String code;
District(String code) {
this.code = code;
}
public String getCode() {
return this.code;
}
}
🔹 Notes:
- Each district is assigned a two-letter code that can be used in systems, APIs, or UIs.
getCode()
allows quick access to the district abbreviation for display or storage purposes.
✅ SQL Representation for Storing District Data
Here’s a SQL schema and the insert statements for storing Suriname’s 10 districts:
sql
-- Table definition for districts of Suriname
CREATE TABLE districts (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
code CHAR(2) NOT NULL
);
-- Insert statements for Suriname's districts
INSERT INTO districts (name, code) VALUES
('Brokopondo', 'BR'),
('Commewijne', 'CM'),
('Coronie', 'CR'),
('Marowijne', 'MA'),
('Nickerie', 'NI'),
('Paramaribo', 'PM'),
('Para', 'PA'),
('Saramacca', 'SA'),
('Sipaliwini', 'SI'),
('Wanica', 'WA');
This setup is ideal for building localized applications, databases, or geographic systems that interact with Surinamese administrative regions.