fork download
  1. import java.util.*;
  2.  
  3. class Ideone {
  4. public static void main(String[] args) {
  5. ArrayList<Estudante> lista = new ArrayList<Estudante>();
  6. List<Estudante> lista1 = new ArrayList<Estudante>();
  7. ArrayList<Estudante> lista2 = new ArrayList<>();
  8. }
  9. }
  10.  
  11. class Estudante {
  12. private int numero;
  13. private String nome;
  14.  
  15. public Estudante(int numero, String nome){
  16. this.numero = numero;
  17. this.nome = nome;
  18. }
  19. }
Success #stdin #stdout 0.05s 711168KB
stdin
Standard input is empty
stdout
Standard output is empty