Ola estou tentando criar uma tabela de campeonato mas n estou conseguindo criar a parte gráfica com JOptionPane.
As linhas grifadas estao como tipo Time e tenho q converter para String para que JOptionPane possa ler. Tem como fazer isso?
O construtor da classe partida é
public class Partida {
//Atributos
private String partida;
private Time mandante;
private Time visitante;
private int golsMandante, golsVisitante;
public Partida(String ValorPartida,Time VMandante, int ValorGolsMan, Time VaVisitante, int ValorGolsVis){
this.partida = ValorPartida;
this.golsMandante = ValorGolsMan;
this.golsVisitante = ValorGolsVis;
this.mandante = VMandante;
this.visitante = VaVisitante;
case 2:
Partida b = new Partida(JOptionPane.showInputDialog("Descriçao da partida:"),
**JOptionPane.showInputDialog(a),**
Integer.parseInt(JOptionPane.showInputDialog("Gols do time mandante:")),
**JOptionPane.showInputDialog(a),**
Integer.parseInt(JOptionPane.showInputDialog("Gols do time visitante:")));
Campeonato.inserirPartida(b);
break;