Collecting books

Report a typo

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 Alchemist
Write a program in Scala 3
object MyLibrary:
val mustRead = Seq(book1, book2)
___

Create a free account to access the full topic