Press any key to continue.... in java!!!!!!

Im trying to get java to pause in the command prompt, but i want it to continue as soon as any key has been pressed not must pres enter key to continue...

public static String readString()

{

try

{

inputLine = reader.nextLine();

}

catch (Exception exc)

{

printError(IO_ERROR_MESSAGE + exc.getMessage());

}

return inputLine;

}

this will work but you must press enter and just disregard whats returned, i want it to display a message and then wait for keyboard input, but to act as enter has been hit not matter what key was pressed, please please please help :|

[644 byte] By [infectiousJavaa] at [2007-11-27 0:50:03]
# 1
[url #" style="display: block; background-image:url(' http://images.wikia.com/uncyclopedia/images/b/b7/Press_any_key.jpg'); width: 380px; height: 277px] [/url]?
CaptainMorgan08a at 2007-7-11 23:19:55 > top of Java-index,Java Essentials,Java Programming...
# 2

Java 6 has a Console class (which is availabale earlier in some third party package as well, which I can't recall the name of) which may allow you read characters from standard in without return being pressed first, but don't quote me on that, as I have never used either the Java 6 one, or the third party one.

masijade.a at 2007-7-11 23:19:55 > top of Java-index,Java Essentials,Java Programming...
# 3
funny, it is really funny =))
rterya at 2007-7-11 23:19:56 > top of Java-index,Java Essentials,Java Programming...
# 4
thanks masijade.didnt get exactly what i wanted, but i got a lot of useful stuff from console class CHEERS!
infectiousJavaa at 2007-7-11 23:19:56 > top of Java-index,Java Essentials,Java Programming...