question about keyboard class

Im trying to make a simple text based betting game for schoolCan I enter number values into keyboard class and have it represent a betting amount? Or is keyboard only useful for "Y/N" type questions...Anyone recommend anything better?
[255 byte] By [dontraiseplza] at [2007-10-2 20:52:01]
# 1
It sounds to me like your "keyboad" is a custom class possibly offered as part of your homework by your teacher? As such you'll need to read through the source and see.
morgalra at 2007-7-13 23:36:15 > top of Java-index,Other Topics,Java Game Development...
# 2
If you talking about entering values from the console, you must use BufferedReader, I think.
Losgardila at 2007-7-13 23:36:15 > top of Java-index,Other Topics,Java Game Development...
# 3

depending on what your triying to do... if you want to distribute your source, then i cant help you, but if your trying to make it on your machine there is a package called chnutil you can google it, basicly in the package there is a class called ConsoleIO, you declare it and then you can use readInt(),readToken(), readLine(), or readDouble() which will pause the console until a proper value is input... have fun

sosleepya at 2007-7-13 23:36:15 > top of Java-index,Other Topics,Java Game Development...
# 4
create a keyboardListener...
PlasmaLinka at 2007-7-13 23:36:15 > top of Java-index,Other Topics,Java Game Development...