Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import java.util.ArrayList<Double>
  2.  
  3. class MySafeList extends ArrayList<Double>{
  4.  
  5. ArrayList<Double> mySafeList;
  6.  
  7. public void add(Double d){
  8. mySafeList.add(d);
  9. }
  10.  
  11. public int size(){
  12. return mySafeList.size();
  13. }
  14.  
  15. public double get(int i){
  16. mySafeList.get(i);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement