Guest User

Untitled

a guest
Jun 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. private ArrayList<Amigo> amigosAgendados;
  2. public boolean addAmigo(Amigo amigo) {
  3. if(amigo == null){
  4. throw new IllegalArgumentException("Amigo nulo.");
  5. }
  6. if (!amigosAgendados.contains(amigo)){
  7. amigosAgendados.add(amigo);
  8. return true;
  9. }
  10. return false;
  11. }
Add Comment
Please, Sign In to add comment