Example of working with Java in Scala