In java,How to calculate number of value in Arraylist?

0 votes
63 views
asked Jun 25, 2015 in JAVA by kalpana (3,995 points)
Hi All

  In java,How to calculate number of value in Arraylist?

1 Answer

0 votes
answered Apr 30 by anonymous

Hi

ArrayList<int> arrayListVariabel = new ArrayList<int>( );

arrayListVariabel.add(1);

arrayListVariabel.add(2);

size = arrayListVariabel.size(); 

System.out.println("size of ArrayList : " + size); 
 

...