Skip to content

Instantly share code, notes, and snippets.

@victorximenis
Created September 15, 2016 11:20
Show Gist options
  • Save victorximenis/f3a5cf85642749e8b7ca1034ad71c3ce to your computer and use it in GitHub Desktop.
Save victorximenis/f3a5cf85642749e8b7ca1034ad71c3ce to your computer and use it in GitHub Desktop.
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
ArrayList<Integer> arrayList = new ArrayList<Integer>();
arrayList.add(new Integer(10));
// Retorna o tamanho do array
int tamanho = arrayList.size();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment