Skip to content

Instantly share code, notes, and snippets.

View kmbenjel's full-sized avatar

Khalid Benjelloun kmbenjel

View GitHub Profile
@kmbenjel
kmbenjel / Main.java
Last active August 23, 2025 02:14
A mosques and roads mapper in Java, an Interfaces exercise
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
// Let's map some Riyadh's Mosques and Roads around QSS!
List<Mappable> mappables = new ArrayList<>();
mappables.add(new Mosque("Al-Rajhi", "Al-Jazeera", "Riyadh"));
mappables.add(new Mosque("Uthman Ibn Affan", "Qurtubah", "Riyadh"));