私はList
かなり長いのを持っていStrings
ます:
test:test:test:test:test:test:test:ABC:test:test:test:test:test:test:
test:test:test:test:test:test:test:DEF:test:test:test:test:test:test:
test:test:test:test:test:test:test:GHI:test:test:test:test:test:test:
test:test:test:test:test:test:test:JKL:test:test:test:test:test:test:
test:test:test:test:test:test:test:MNO:test:test:test:test:test:test:
すべてのテストを互いに異なるものと仮定します。大文字が保持されている特定の場所に基づいて、これらの文字列を並べ替えたいと思います。
for (int i = 0; i < aList.size(); i++) {
System.out.println(list.get(i).toString().split(":")[7]);
}