Results for “java method calling code for python example site:bugs.java.com 1”
bugs.java.com
Bug ID: JDK-8046099 JEP 109: Enhance Core Libraries with Lambda
For example, a _forEachLine()_ method might be added to java.nio.file.Files that calls a Lambda for each line in that file. * Look for opportunities to use the execute-around idiom. For example, files must be closed after use, locks must be unlocked after use, etc.