I am using Eclipse Oxygen. Offten I need to convert a Java thread into a regular loop forand back.
This is a Java 8 thread expression:
taskDao.getChildTask(foundTask).stream().forEach(t-> {
setResult(t, null);
});
Is it possible to use some key or shortcut in the Eclipse IDE to automatically convert this expression to a regular loop for:
for (Task t : taskDao.getChildTask(foundTask)) {
setResult(t, null);
}
Is it possible?
source
share