String[] planets = {"Mercury", "Venus", "Earth", "Mars"};
System.out.println(planets.length); //4 elements in the array
System.out.println(planets[1].length()); //Venus - 5 characters
So there are two possible answers: 4 and 5
String[] planets = {"Mercury", "Venus", "Earth", "Mars"};
System.out.println(planets.length); //4 elements in the array
System.out.println(planets[1].length()); //at index 1, Venus has 5 characters
So there are two possible answers: 4 and 5
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
letmein2
Highly Voted 5 years, 6 months agorasifer
Highly Voted 5 years, 5 months agovic88
Most Recent 2 weeks agosomrita90
1 year, 3 months agoSreeni_A
1 year, 4 months agoKolodets
1 year, 7 months agoVicky_65
1 year, 8 months agoodzio33
1 year, 11 months agocarloswork
2 years, 1 month agocarloswork
2 years, 1 month agokkaayyyy
2 years, 2 months agoRoxyFoxy
2 years, 3 months agosumit_1919
2 years, 3 months agoAnupam_Anand
2 years, 11 months agobrianhuang881215
3 years, 4 months agoSSJ5
3 years, 8 months agodya45792
5 years ago