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