+ 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..??
1 ответ
+ 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.