import java.util.*; class Ideone { "TOWN ALe Alx Aus Bau Bem Bra Clq Crk DLk", "AlbertLea - - 22 - - - - - - -" }; .map(s -> s.split("(?<=\\s)(?=\\S)")) } }
Standard input is empty
[TOWN , ALe , Alx , Aus , Bau , Bem , Bra , Clq , Crk , DLk] [AlbertLea , - , - , 22 , - , - , - , - , - , - , -]