Add the import where needed so we could use books from our Library object:
object Library:
val book1 = "The Picture of Dorian Gray"
val book2 = "The Alchemist"Add the import where needed so we could use books from our Library object:
object Library:
val book1 = "The Picture of Dorian Gray"
val book2 = "The Alchemist"Sample Input 1:
Sample Output 1:
The Picture of Dorian Gray, The AlchemistCreate a free account to access the full topic