fork(22) download
  1.  
  2. import java.util.*;
  3. import java.lang.*;
  4. import java.io.*;
  5.  
  6. class ABC {
  7. private ArrayList<Integer> arr;
  8.  
  9. ABC(ArrayList<Integer> arr) {
  10. this.arr = arr;
  11. }
  12.  
  13. public int getItem(int index) {
  14. return arr.get(index);
  15. }
  16. }
  17.  
  18. class Main
  19. {
  20. public static void main (String[] args) throws java.lang.Exception
  21. {
  22. ABC obj;
  23. //write some code here to know the size of array list used in ABC.
  24. // we can assume that somehow array list is initalized but we dont know the size.
  25. }
  26. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
Standard output is empty