Array for the summer!

Welcome back everyone! Today, let's have some fun with arrays. an array is just the programming term to describe a list! For example a programmer may define an array under a variable. For example(in Java):
int intArr = {1, 2, 3, 4, 5, 6, 7};
Today's challenge is to write a program that will add these numbers up. A few weeks ago, we got a response that added two numbers in Java. This time, you will be adding more numbers! In order to make this happen, a for loop may come in handy. Here is a good website if you need a refresher on loops!(for Java, but can come in handy for other "Java-like languages")http://www.learnjavaonline.org/en/Loops
To go with the challenge, here is a link to another tea recipe that should keep you healthy! Fun fact: Turmeric improves your ability to grow and learn!
https://www.allrecipes.com/recipe/242148/ginger-turmeric-herbal-tea/?internalSource=hub%20recipe&referringId=17150&referringContentType=recipe%20hub
See you in a little while!
Amulya :)

//not exactly adding numbers, but instead concatenating my name :)
String[][] meArr= {{"e", "l", "i"},{"z", "a", "b"},{"e", "t", "h"}};
String total = "";
for(int i = 0; i < meArr.length; i++)
{
for(int j = 0; j < meArr[0].length; j++)
total += meArr[i][j];
}
System.out.print(total);
Input : arr[] = {1, 2, 3, 4, 5, 6, 7}
Output: 28
1 + 2 + 3 + 4 + 5 + 6 + 7 = 28
Nice use of java!
Thank you Neil!
My approach would be this:
int sum = 0;
for (int i = 0; i < intArr.length; i++) {
sum += intArr[i];
}
System.out.println(sum);