Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package aula.est;
- public class Aluno {
- private String nome;
- public String getNome() {
- return nome;
- }
- public void setNome(String nome) {
- this.nome = nome;
- }
- public String toString() {
- return this.nome;
- }
- public boolean equals(Object o) {
- Aluno outro = (Aluno)o;
- return this.nome.equals(outro.nome);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement