how can i use clrscr() in java programming??????

What is clrscr()?

ClearScreen (I assume).

@OP

System.out.println() about 100 times, or JNI.

but you shouldn't.
NEVER assume you have sole control over the terminal.

but you shouldn't.
NEVER assume you have sole control over the terminal.

Correct. I was hoping he would take the hint, that when you have to go so far out of your way to do something so seemingly simple, that it is either not worth it, or not truely desired. ;-)