From 31c755b9d63e520d21f17d94008877ad7a9561f8 Mon Sep 17 00:00:00 2001 From: PrinzEugen7 Date: Thu, 26 Nov 2015 15:46:06 +0900 Subject: [PATCH] Create Sum.java --- Java/Basic/Sum.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Java/Basic/Sum.java 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