tell me the function as that of getch() of C language in java

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.
[167 byte] By [sha545504a] at [2007-10-3 2:48:12]
# 1

> 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

tsitha at 2007-7-14 20:36:59 > top of Java-index,Java Essentials,New To Java...
# 2
what does getch() do?Because you can read input off the terminal.
TuringPesta at 2007-7-14 20:37:00 > top of Java-index,Java Essentials,New To Java...
# 3

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)

tsitha at 2007-7-14 20:37:00 > top of Java-index,Java Essentials,New To Java...