Log in
Sign up for FREE
arrow_back
Library
ArrayList Worksheet 1
By Mickey Arnold
star
star
star
star
star
Share
share
Last updated almost 2 years ago
14 questions
Add this activity
Do not put this in eclipse. It is not for a grade, so see if you get what is happening.
zoom_in
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Question 1
1.
What is the output of System.out.println(sam.get(0)); // LINE 1?
Question 2
2.
What is the output of System.out.println(sam.get(2)); // LINE 2?
Question 3
3.
What is the output of System.out.println(sam.set(1, "up")); // LINE 3?
Question 4
4.
What is the output of System.out.println(sam.indexOf("ben")); // LINE 4?
Question 5
5.
What is the output of System.out.println(sam.contains("sam")); // LINE 5?
Question 6
6.
What is the output of System.out.println(sam); // LINE 6?
Question 7
7.
What is the output of System.out.println(sam); // LINE 7?
Question 8
8.
What is the output of System.out.println(sam); // LINE 8?
Question 9
9.
What is the output of System.out.println(sam); // LINE 9?
Question 10
10.
What is the output of System.out.println(sam); // LINE 10?
Question 11
11.
What is the output of System.out.println(sam); // LINE 11?
Question 12
12.
What is the output of the for loop at LINE 12?
Question 13
13.
What is the output of System.out.println(sam); // LINE 13?
Question 14
14.
What is the output of System.out.println(sam); // LINE 14?