In java there is no library package like clearscreen() in c to clear the standard output ,but I introduce here one trick to override the difficulty.This code not actually clear the screen,it overwrite the line printed in one line and start print again in same line with the help of '\r' - return
The code of the program is given below:(
The code of the program is given below:(
ClearScreen.java
) public class ClearScreen { |
0 comments