Is there a way to clear multiple lines of text printed in the console with Java?
I'm trying to print 2 pictures made with text that are slightly different and replace each other in a loop. Thus, I want to print a multiline string and then clear the screen before printing the next string. However, I don't know how to clear the screen.
I've already tried using \r, but that doesn't work because it's multiple lines.