Java word segmentation program, can be divided into English