I need to make a program that returns an error list in a file.
The problem I'm having is that it returns the String in one big line, with the following toString method:
@Override
public String toString() {
return "Resultat{" +
"status=" + complet + "\n" + ", erreur=" + erreur +
'}';
}
Is there a way to get a return of the specific String in restricted length of 80 length, then skip line?
For exemple:
Apple
Green
instead of(of course the line would be considerably longer in that case).
Apple Green