How do you Clear console screen in java?
Answers
Answered by
1
ar c = '\n'; int length = 25; char[] chars = new char[length]; Arrays.fill(chars, c); System.out.print(String.valueOf(chars));
Anish1903:
Thanks fr the Answer but in this the cursor wont go back to the first line..I require the cursor to start printing frm the first line after clearing the screen
Similar questions