1
edit
Changes
→Full Program
val t1ColonCount = text1.flatMap(line => line.split("")).filter(character => character.matches("[:;]")).count()
val t1CharacterCount = text1.flatMap(line => line.split("")).count()
val t1ParagraphCount = text1.flatMap(line => line.split("")).filter(character => character.matches("[\n]")).count()