Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
...
public static int number( int [] myArray, int start)
{
if(start>myArray.length) {
return 2;
}
else {
int c= myArray[start];
for(int i=0; i<myArray.length; i++) {
if(myArray[i]%4==0) {
int sum = c + myArray[i];
return sum;
}
}
}
return 0; //ohne return-Statement sähe man die Warnmeldung
...