Untitled
unknown
plain_text
a year ago
1.0 kB
7
Indexable
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.mycompany.sistemagestaocampeonato;
/**
*
* @author Jorge
*/
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class Equipa implements Serializable {
private String nome;
private List<Jogador> jogadores;
private int vitorias;
private int derrotas;
public Equipa(String nome) {
this.nome = nome;
this.jogadores = new ArrayList<>();
this.vitorias = 0;
this.derrotas = 0;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
@Override
public String toString() {
return "Equipa{" + "nome='" + nome + '\'' + ", vitorias=" + vitorias + ", derrotas=" + derrotas + '}';
}
}
Editor is loading...
Leave a Comment