Answer is A.
import java.util.ArrayList;
import java.util.List;
public class Patient {
String name;
public Patient (String name) {
this.name = name;
}
}
public static void main(String[] args) {
List ps = new ArrayList();
Patient p2 = new Patient ("Mike");
ps.add(p2);
/* A */
int f = ps.indexOf(p2);
if (f >= 0) {
System.out.println("Mike Found");
}
}
upvoted 1 times
...
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
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.
DarGrin
8 months, 3 weeks agoa_really_reliable_programmer
10 months agoVicky_65
1 year, 2 months agospongecodes
1 year, 3 months agocarloswork
1 year, 8 months ago