Computers and Technology
Computers and Technology, 24.10.2021 14:00, ani69

I have problems in compiling this Java code: class SumMatrix{
public static void main(String[] args){
matrixAdd({{1;2}; {5;6}}; {{8;7}; {3;4};});}
public static double[][] matrixAdd(double m1[][], double m2[][]){
int i, j;
double sum[][];
for (i=1;i<=2;i++){
for(j=1;j<=2;j++){
sum[i][j]=m1[i][j]+m2[i][j];
}}
for (i=1;i<=2;i++){
for(j=1;j<=2;j++)
return sum[i][j];
}
}
}
I get this errors:


I have problems in compiling this Java code:

class SumMatrix{
public static void main(String[] ar

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:10, Olaf2018
Drag each label to the correct location on the imagelist the do’s and don’ts of safeguarding your password. keep yourself loggedin when you leave your computer. don’t write your password down and leave it whereothers can find it. share your password with your friends. each time you visit a website, retain the cookies on your computer. use a long password with mixed characters.
Answers: 1
image
Computers and Technology, 23.06.2019 22:30, kayelynn003
How many points do i need before i can send a chat
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, Cinders13
How can you make your column headings stand out?
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, MOONCHILDSUGA
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
Do you know the correct answer?
I have problems in compiling this Java code: class SumMatrix{
public static void main(String...

Questions in other subjects:

Konu
Mathematics, 07.01.2021 16:30
Konu
Medicine, 07.01.2021 16:30
Konu
Mathematics, 07.01.2021 16:30