ArrayList <String> list = new ArrayList();
list.add("behold");
list.add("bend");
list.add("bet");
list.add("bear");
list.add("beat");
list.add("become");
list.add("begin");
There is a way to search for the regexp bea.* and get the indexes like in ArrayList.indexOf ?
EDIT: returning the items is fine but I need something with more performance than a Linear search
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…