Computer Science, asked by Anish1903, 1 year ago

How do you Clear console screen in java?

Answers

Answered by endlessjatt123
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