F&A Diskussionen
code
2 Stimmen
3 AntwortenWhat codes are appropriate to post?
18 Stimmen
2 AntwortenWhat 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 AntwortenSololearn code !
1 Stimme
12 AntwortenWhat does void do?
1 Stimme
9 AntwortenCreating your own job.
2 Stimmen
1 AntwortHeute heiß
Question
3 Votes
overloading operators << >>
1 Votes
Wayss
0 Votes
I dont now that how to do js
2 Votes
fully dynamic arrays
1 Votes
Wishkit alternative for android
1 Votes
How to start in web dev?
0 Votes
Hi
0 Votes