0 votes
74 views
asked in JAVA by (4k points)
Hi All

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

1 Answer

0 votes
answered by

Hi

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

arrayListVariabel.add(1);

arrayListVariabel.add(2);

size = arrayListVariabel.size(); 

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

Categories

...