Skip to content

Commit 22d6e6a

Browse files
committed
chore: adds more defined structure to addEvent method
1 parent 45e5b73 commit 22d6e6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

decode/app/src/main/java/com/codedifferently/projectoop/decode/decodelifeapp/EventCollection.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class EventCollection extends Object {
1515

1616
private Map<String, String> eventDescriptionMap;
1717

18-
18+
// Contrustor
1919
public EventCollection() {
2020
eventDescriptionMap = new HashMap<>();
2121
initializeEventDescriptions();
@@ -38,7 +38,7 @@ private void initializeEventDescriptions() {
3838
}
3939

4040

41-
public void addDefaultEvents() {
41+
public void addDefaultEvents(String name, String date, String location) {
4242
addEvent("Conference", "2025-07-15", "Tech Center");
4343
addEvent("Job fair", "2025-08-01", "Downtown Hub");
4444
addEvent("Hackathon", "2025-06-20", "Innovation Lab");
@@ -69,6 +69,8 @@ public void removeEvent(String name) {
6969
eventLocations.remove(index);
7070
eventDescriptions.remove(index);
7171
}
72+
73+
7274
}
7375

7476

0 commit comments

Comments
 (0)