← All projects
Capstoneintermediate5h
Kotlin Note-Taking Data Model
Design (on paper/in guided steps, since this platform can't execute Kotlin) the data model and core logic for a note-taking app in Kotlin, applying data classes, null safety, and collections.
Tracks: Kotlin Fundamentals
Objectives
- Design a Note data class (id, title, body, completed) with a default value for completed
- Write a findNote(id) function returning Note? and handle the missing case with ?./?: at every call site
- Write functions to add a note (returning a new list) and mark one complete (using copy(), not mutation)
- Use filter to list only incomplete notes
Before you start
Milestones
0%