Discussioni Q&A
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 Voti
2 Rispostewhat is Pow method?
0 Voti
3 Risposteredo
1 Voto
2 RisposteWhat does void do?
1 Voto
9 RispostePopolare oggi
Decorators in python.
2 Votes
Need help
1 Votes
How to install Bcrypt here
1 Votes
Pointers in c#
1 Votes
Please click me
0 Votes
What is happening with sololearn
1 Votes
Hello !
0 Votes
Help
1 Votes