F&A Diskussionen
What is the output and why?
public static int[] make (int n){
int[]a=new int [n];
a [i]=i+1;
}
return a;
}
public static void dub (int []jub){
for (intent i=0;i <jub.length;i++){
jub*=2;
}
}
public static int mus (int []zoo){
int jus=0;
for (int i=0;i <zoo.length;i++){
jus+=zoo [i];
}
return jus;
}
public static void main (String [] args){
int [] bob =make(5);
dub (bob);
System.out.println (mus (bob));
}
0 Stimmen
2 Antwortenwhat is Pow method?
0 Stimmen
3 Antwortenredo
1 Stimme
2 AntwortenWhat is method area exactly?
0 Stimmen
5 AntwortenWhat does void do?
1 Stimme
9 AntwortenHeute heiß
Guys help please
1 Votes
Python question
2 Votes
Python
1 Votes
Are websites hackable?
1 Votes
TICTACTOE
0 Votes
C# and sql
1 Votes
What course to take for AI?
0 Votes
Error
0 Votes
What's an unsigned int?
0 Votes