假设文本文件包含:
He is a boy .
She is sick .
Ali is playing .
We are eating .
The dog is barking .
He and his brother are running .
如何将所有句子按格式放入数组列表中:
He is
is a
a boy
boy .
She is
is sick
sick .
等等。
我使用数组列表来避免继续阅读文本文件来执行某些任务是否可能?或者我需要使用矢量来做到这一点?