import java.util.UUID
hi you can only use the packages that are specified in the project skeleton later in the implementation phase, also i don’t see the benefit of using UUID, since in the spec you can only assign ids to objects with integers start from 1
3 Likes
Thank you for your response!
Naturally my next question is whether we have to include the logic of assigning the ids in our Diagrams, for example :
object IdGenerator {
private var nextId = 1
val nextAvailableId: Int
get() = nextId
fun generateId(): Int {
return nextId++
}
}