Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. protected ArrayList<double[]> amostra = new ArrayList<double[]>();
  2.  
  3. public double[] element(int k){
  4. return amostra.get(k);
  5.  
  6. public static void main(String args[]){
  7. double k[]= {4,5,6};
  8. double k1[]= {0,0,0};
  9. double k2[] = {1,1,3};
  10. ArrayList<double[]> amostra = new ArrayList<double[]>();
  11. amostra.add(k);
  12. amostra.add(k1);
  13. amostra.add(k2);
  14. amostra.size();
  15. System.out.println(amostra.element(1));
  16.  
  17. int x;
  18. double[] doubleArray = amostra.get(x);
  19.  
  20. amostra.get(arrayListPosition)[doubleArrayPosition];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement