0
Good night, I need to display the contents of the message array in a Message Dialog:
List<String> mensagem = new ArrayList<String>();
In the course of code I add some text to the array as:
mensagem.add(" o metodo" + m1.getName()+" precisa ser alterado\n");
mensagem.add(" a classe" + m1.getName()+" precisa ser alterado\n");
I have the method that returns her:
public String getMsg() {
return mensagem.toString();
}
MessageDialog.openInformation(window.getShell(), "Teste", vs.getMsg());
And when I display it in the Messagedialog it appears with a bracket at the beginning and at the end , moreover when I have more than one term they appear separated by commas. Like :
I would like not appear the [] and neither the commas , but looking at the cogido is not possible to see where this information comes from.
Could someone explain to me how to remove this information?
Okay, it worked. Thank you
– ADR
Mark my answer as sure.
– Ismael SIlva