question: private long wc ( String text ) { long wc = 0 ; String [ ] lines = text . split ( "\n" ) ; for ( String line : lines ) { wc += line . split ( "\\s+" ) . length ; } return wc ; }
target:  Count the words of a text file.