just learning!
Log TAB segmentation, some items is empty, written in Java is such line. The split (_split_column)
How to write in the scala
Val line="a b c d"
Val ctab=32. AsInstanceOf [Char]
Val tarr=line. The split (ctab)
Println (tarr. Length)
6
Hope that the output is 5 {a, b, "", c, d}
CodePudding user response:
Java is the"A b c d". The split () '\ t'