📅  最后修改于: 2022-03-11 14:52:40.008000             🧑  作者: Mango
String string = "Hai,Hello,How,are,";
String[] bits = string.split(",", -1);
ã↓
bits[]…{ "Hai","Hello","How","are","" }
bits[bits.length-2]…"are"