Advertisement
Guest User

ArrayList Worksheet #2

a guest
Apr 7th, 2020
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. //Question 1:
  2. //The output would be: 4.
  3. //The output would be: [0,1,3,5,7,9,10].
  4.  
  5. //Question 2:
  6. //The output would be: [0,1,2,4,5,6,7,8,9,10]
  7.  
  8. //Question 3:
  9. //The output would be: [1,2,5,6,7,8,9,10]
  10.  
  11. //Question 4:
  12. //The output would be: [1,2,5,6,7,8,9,10]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement