Skip to content
Sign upLog in

How do you clear terminal in Java?

Profile icon
SriramManikand1

I need help with clearing the terminal/ console in java. Any help will be appreciated!

You are viewing a single comment. View All
Answered by Funkus [earned 5 cycles]
View Answer
Profile icon
AntonBut

Sadly I didn't find any good method. The clearScreen() method clears only like 20-30 lines of code, if you run it few times, it become work really slow. I wish replit will insert command that is equal to pressing trash basket button...