> i m new to java and i wanna know about the formatting
> the output as the C language do by using getch()
> function. please tell me the equivalent function in
> java.
Formatting the output? getch gets a character from the terminal - and AFAIK you are out of luck doing that in java.
Good Luck
Lee
getch() pulls a single character from the terminal (think old curses or DOS menus where you hit "1" and it takes option 1) AFAIK Java will require you to hit the "enter" key to have any input read from the terminal.
http://forum.java.sun.com/thread.jspa?threadID=456866&messageID=2086031
(there might be java curses implementations that would do what this poster wants though)