+ 1

Anymethod available like clrscr(); in java

because i want to design basic timer.in c for(int i=60;i>0;i++) { clrscr(); printf("%d",i); } the clrscr(); clears the value 60 and disply 59,59 like that but how to do like that in java..??

28th Aug 2018, 2:46 PM
M.MANIVANNAN
M.MANIVANNAN - avatar
1 Respuesta
+ 5
First off, clrscr is not standard C++ so doesn't work for most compilers. It will not work in SoloLearn nor would any valid equivalent in C++ or Java as SoloLearn doesn't support graphics. On a laptop, you could use JavaFX for a similar display.
30th Aug 2018, 11:18 AM
John Wells
John Wells - avatar