Answer A is correct, I tested:
public static void main(String[] args) {
int data [] = {2010, 2013, 2014, 2015, 2014};
int key = 2014;
int count = 0;
for (int e: data) {
if (e != key) {
continue;
count ++;
}
}
System.out.print(count + " Found");
}
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.
NabilBenAsker
6 months, 4 weeks agoakbiyik
1 year, 2 months agoeilla
1 year, 2 months agoiSnover
1 year, 3 months ago