added shebang file

This commit is contained in:
Ganesh Pagade 2018-12-11 22:47:56 +05:30
parent 5afdce78ea
commit 98d74af44a
1 changed files with 12 additions and 0 deletions

View File

@ -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());
}
}