From 886c309a7f450b395a4f8529f08d9348972a2b2b Mon Sep 17 00:00:00 2001 From: PrinzEugen7 Date: Thu, 26 Nov 2015 16:52:33 +0900 Subject: [PATCH] Create Average.java --- Java/Basic/Average.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Java/Basic/Average.java diff --git a/Java/Basic/Average.java b/Java/Basic/Average.java new file mode 100644 index 0000000..9134c2a --- /dev/null +++ b/Java/Basic/Average.java @@ -0,0 +1,16 @@ +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