Java program to Add array elements | Sum of Array Elements in Java

preview_player
Показать описание
Java Full Course for Beginners...!👇👇

Please Like | Share | SUBSCRIBE our Channel..!
Learn Coding
🙏🙏🙏

Like our Facebook Page...!
Learn Coding

Don't forget to tag our Channel...!
#AddArrayElements
#LearnCoding
#ask4help
#JavaSumOfArray
#HowtoFindSumOfArrayInJava
Рекомендации по теме
Комментарии
Автор

Loved your teaching Sir...I wasn't able to understand arrays in my school's online class but after watching I am very confident that I will do well in my boards❤️😀🙏

kitishere
Автор

aapke padane ka style bahut hi achha hai sir

jeevanpanwar
Автор

public class Demo1 {
static int sum=0;
public static void main(String[] args) {
int arr[]=new int[4];
arr[0]=3;
arr[1]=5;
arr[2]=7;
arr[3]=9;
for(int o:arr) {
System.out.println(o);
}
System.out.println("Sum of Array elements ");

for (int i = 0; i < arr.length; i++) {
sum = sum+arr[i];
}
System.out.println(sum);





}
}
in my eclipse i have to make use static keyword to execute this program why ?without static its not running

UtkarshWankhedeFanpage
Автор

Sir agr odd array me jo number hai uska sum kaise nikalenge🙄
By the thanku sir

sushilaverma
Автор

Don't buy courses from this ads presenter learn from only YouTube because content on YouTube is more better then paid courses don't be fool like me😢

marathirealfactsmrf
Автор

Sir ap Software developer ya Android developer kyu nhi bnte itna kuch aya hai to

ItsmeASJ
Автор

Huh, what's this even doing? I thought you'd make something that'd add an element to a too short array. Also your code is hard to read and your variable names are meaningless

catea