Q&A Discussies
looks like java has some cut and dried rules about capitalization...
I typed a code using ...main (string []args)...
and got an error
until I changed it to ...main (String []Args)...
pls anyone know d rules guiding character CAPITALIZATION in java... pls post, I'll appreciate.
0 Stemmen
2 AntwoordenWhat 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 Stemmen
2 AntwoordenPopulair vandaag
Coding for Cybersecurity
1 Votes
Need help
1 Votes
Pointers in c#
1 Votes
Salut tout le monde
1 Votes