如何使用Java 8打破外部循环。
如何在lambda表达式中进行转换
City cityR= null;
checkLoop:
for (final City city: list) {
for (final State state: city.getState()) {
if (StringUtils.equals("Anny", state.toString())) {
cityR = city;
break checkLoop;
}
}
}
return cityR;