如何在Java8中对此进行优化?优化是我首先关注的问题。已尝试使用Java8 streams和并行流。但是在Java8流中的foreach循环中不允许终止(Break)。此外,我们不能在foreach中使用外部变量(下面的“start”变量)。code to process if(employee.getLastname().equals("xxx")) {
s
tableRow = new TableRow(getContext());threeFiles.forEachgetActivity().getApplicationContext()).setBackground(Drawable.createFromPath(action.getAbsolutePath()))));
在最后一行,它显示ViewGroup中的addView(android.view.View)不能应用