Help with printing a String

Hello i am new to the Scala programming language and i need some help to complete an assignment. i have been given a program with some unfinished methods that i need to complete

the first method is :

def listStatementTypesUsed(statements: Statements): List[String] =
throw new Exception(“listStatementTypesUsed - replace this thrown exception with an implementation”)

What this needs to do is print a list of all the statement types used within the program however i dont know what to do can anyone help?

As far as I can see that method has to return a list of strings, not print one. How you have to do that depends on what you can do with a Statements object.