I'm trying to do a line break in a Array
, however I'm not having success trying to run split()
, in short, I want to make a table of 10 rows with 2 columns that get the values of list
and list2
public class Ultimos10 {
public Ultimos10(ObjectOutputStream saida, Socket cliente) throws IOException {
String resultados = NovoJogo.list.toString(); //Puxa Array da outra classe
String resultados2 = NovoJogo.list2.toString();
String quebra[]=resultados.split("\n"); //Tentando colocar split
String quebra2[]=resultados2.split("\n");
for(String resul:quebra){ //Imprime na tela do cliente
saida.writeObject(resul+"\r\n");
}
for(String resul2:quebra){
saida.writeObject(resul2);
}
Servidor serv = new Servidor();
serv.Menu(cliente);
}
}
I also have doubts about deleting a line and raffle by results placed first.