+ 2

Is there any fuction as "clear screen'' of c++ in java?

I want the outputs after removing the input.?

28th Mar 2018, 8:07 AM
Nikhil Kumar Shrivastava
Nikhil Kumar Shrivastava - avatar
8 odpowiedzi
+ 51
If there exist no function, you can develop it. 😉
29th Mar 2018, 7:44 AM
Worm
Worm - avatar
+ 47
have a look at https://stackoverflow.com/questions/2979383/java-clear-the-console you can use Runtime.getRuntime().exec("cls");
28th Mar 2018, 9:21 AM
Worm
Worm - avatar
+ 46
I have never used it and need to search it on the internet, so try it by your own. Keywords are: Java console clear function
30th Mar 2018, 4:10 PM
Worm
Worm - avatar
+ 11
Have a look at the following code where you can find a description: https://code.sololearn.com/cb2JuIFJ0r2R/?ref=app
13th Sep 2019, 4:40 PM
Worm
Worm - avatar
+ 4
system("clrscr") in windows system("clear") in linux.
28th Mar 2018, 8:35 AM
shobhit
shobhit - avatar
+ 3
it works only for c++. I want such function in java.
28th Mar 2018, 9:08 AM
Nikhil Kumar Shrivastava
Nikhil Kumar Shrivastava - avatar
+ 1
help me my friend
29th Mar 2018, 2:47 PM
Nikhil Kumar Shrivastava
Nikhil Kumar Shrivastava - avatar
0
cls function windows defined and can't run through java platform. pls any other result.
28th Mar 2018, 9:28 AM
Nikhil Kumar Shrivastava
Nikhil Kumar Shrivastava - avatar