Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. package com.company;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. public class Main {
  6.  
  7.     public static void main(String[] args) {
  8.         ArrayList<Aluno> myList=new ArrayList<>();
  9.         Aluno aluno = new Aluno("William","03497272","masc");
  10.         myList.add(aluno);
  11.  
  12.         System.out.println(myList.get(0).getNome());
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement