Merge pull request #5899 from rockoder/java11-single-source
[BAEL-2357] Java 11 Single File Source Code
This commit is contained in:
commit
bf3aa03a9f
|
@ -0,0 +1,12 @@
|
|||
#!/usr/local/bin/java --source 11
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Addition
|
||||
{
|
||||
public static void main(String[] args) {
|
||||
System.out.println(Arrays.stream(args)
|
||||
.mapToInt(Integer::parseInt)
|
||||
.sum());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue