Splitted print class into printUnformated and printFormated.

And fixed errors in print Unformated
This commit is contained in:
Leonardo Brandenberger 2021-11-05 16:29:29 +01:00
parent a65f1192a2
commit 7ac12a8ad5
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class TextOutput {
}
System.out.print(word + " ");
currentLength += word.length() + 1;
}
}
}
System.out.println(); //added
}

View File

@ -15,7 +15,7 @@ class TextOutputTest {
public void setup(){
textOutput = new TextOutput();
textOutput.formatFix(9);
//textOutput.formatRaw();
textOutput.formatRaw();
text = new ArrayList<>();
text.add("123456789");
text.add("1234");