0

So lets say I have this:

System.out.println("HelloWorld");

What would I do to make it so the console deletes "HelloWorld" after 10 seconds.

  • The is not supported in direct Java. You would need to do OS calls. I think you would use JNI for something like this (although I know nothing about JNI) and I believe the logic would be different for each OS.. – camickr Nov 10 '20 at 02:36
  • 1
    Does this answer your question? [How to delete stuff printed to console by System.out.println()?](https://stackoverflow.com/questions/7522022/how-to-delete-stuff-printed-to-console-by-system-out-println) – Player One Nov 10 '20 at 03:02
  • please check this question: https://stackoverflow.com/questions/2979383/java-clear-the-console – Mustafa Poya Nov 10 '20 at 05:13

0 Answers0