diff --git a/Java/Basic/Sum.java b/Java/Basic/Sum.java new file mode 100644 index 0000000..ab6d1f3 --- /dev/null +++ b/Java/Basic/Sum.java @@ -0,0 +1,15 @@ +import java.util.*; +import java.lang.*; +import java.io.*; + +class Main +{ + public static void main( String[] args ) { + int sum = 0; + int[] data = { 1, 2, 3, 4, 5}; + for( int i=0; i