Changes

Jump to: navigation, search

The Real A Team

1 byte removed, 11:44, 5 April 2016
Full Program
val t1SentenceCount = text1.flatMap(line => line.split("")).filter(character => character.matches("[.!?]")).count()
val t1CommaCount = text1.flatMap(line => line.split("")).filter(character => character.matches("[,]")).count()
 
val t1ColonCount = text1.flatMap(line => line.split("")).filter(character => character.matches("[:;]")).count()
val t1CharacterCount = text1.flatMap(line => line.split("")).count()

Navigation menu