+ 4
Why? (ภâ˘_â˘)ŕ¸?
public class Program { public static void main(String[] args) { String[ ] myNames = { "A", "B", "C", "D"}; System.out.println(myNames[2]); } } Why is âCâ?
3 Answers
+ 20
The computer doesn't say... Hey, this is the first number, so its index is 1... The computer starts the index from 0... Because C is the third element, its index is 2...
;)
+ 15
my names[0] is "A"
my names[1] is "B"
my names[2] is "C"
my names[3] is "D"
0
the ans is c