Skip to content

Instantly share code, notes, and snippets.

View oanabejenaru's full-sized avatar

Oana Maria Ciulei oanabejenaru

View GitHub Profile
fun main() {
val teachers = mutableListOf<Teacher>()
for (i in 0..2) {
teachers += Teacher("teacher $i", "teacher$i@faculty.ro")
}
val courses = mutableListOf<Course>()
for (i in 0..2) {
courses += Course("course $i", teachers[i], 2)
}