Kursy
Kursy
Kompilator kodu
Kompilator kodu
Dyskusja
Cennik
Zespoły
Zaloguj się
Zarejestruj się
Menu
Dyskusje Q&A
Szukaj
Szukaj
Zadaj pytanie
Zadaj pytanie
Array in Java and Sum
arrays
myarr
sum
масивы
4 głosów
9 odpowiedzi
29th Jan 2018, 9:45 PM
Grey King
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0;
arrays
1 Głos
8 odpowiedzi
16th Mar 2018, 3:48 PM
Devansh Gupta
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; // 4
arrays
java
2 głosów
9 odpowiedzi
5th Jul 2017, 12:49 PM
Sheevika
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; can't get this declaration?
arrays
0 głosów
2 odpowiedzi
25th Sep 2018, 2:58 PM
yoga
int [] myArr = {3, 8,5,3}; what is the code to multiple the value array from index 0 to 3 ???
array
java
loop
2 głosów
2 odpowiedzi
1st Jan 2017, 7:41 PM
shakil
int [ ] myArr = {6, 42, 3, 7}; int sum=0; for(int x=0; x<myArr.length; x++) { sum += myArr[x]; } System.out.println(sum)
arrays
java
0 głosów
3 odpowiedzi
20th Mar 2017, 4:39 AM
naveen roshan
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; sop(x);
arrays
java
0 głosów
3 odpowiedzi
16th Dec 2016, 4:31 AM
Tanaji Kolekar
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; why are there only 2 [ ] in the array declaration?
arrays
1 Głos
5 odpowiedzi
21st Jan 2018, 11:40 AM
russ
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; // 4
arrays
0 głosów
1 Odpowiedź
9th Jan 2019, 3:18 PM
Nikhil Verma
int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; // 4
arrays
java
1 Głos
1 Odpowiedź
29th Jun 2017, 9:48 AM
Narayan K
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0; for(int x=0; x<myArr.length; x++) { sum += myArr[x]; } System.out.println(sum); } }
arrays
java
1 Głos
7 odpowiedzi
14th Oct 2016, 6:14 AM
Gopal Varma Gottimukhala
public class Program { public static void main(String[] args) { int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][0]; System.out.println(x); } }
arrays
java
0 głosów
7 odpowiedzi
14th Oct 2016, 11:03 AM
Gopal Varma Gottimukhala
public class Program { public static void main(String[] args) { int [ ] myArr = {6, 42, 3, 7}; int sum=0; for(int x=0; x<myArr.length; x++) { sum += myArr[x]; } System.out.println(sum); } } very lovely program. please who can explain the meaning of "+=" in the code?
arrays
java
0 głosów
5 odpowiedzi
20th Oct 2016, 3:24 PM
Raymond Crump Rukevwe
public class Program { public static void main(String[] args) { int[ ][ ] myArr = { {1, 2, 3}, {4}, {5, 6, 7} }; myArr[0][2] = 42; int x = myArr[1][1]; System.out.println(x); } } why it does not give any garbage value as output?
arrays
java
-1 Głos
4 odpowiedzi
9th Nov 2016, 6:21 PM
Sandesh
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Popularne dzisiaj
Is this realistic enough?
2 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
I am a beginner, please teach me how to use Python
0 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
Web Development
0 Votes
Cybersecurity techies
3 Votes
Please complete this code.
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes