![]() ![]() Please help with the spin method- I can't get the number and color of the spin to print. Well, I know you won't be shocked to hear I hit another snag. (Strange thing - in the preview, the color-coding of the java is not working, but the indentation is preserved. return Integer.parseInt(stdin.readLine()) If the input is out of range, or the wrong type, you would then // redisplay the options and ask for valid input. You should also catch the exception here as part of that. Rather than simply returning here, you may want some input validation. ![]() = public static int bet_options(BufferedReader stdin) throws IOException = // Presents betting options and reads player choice. 3 A modular design instead, we can encapsulate all of the behavior of a roulette wheel in a class RouletteWheel class: create a RouletteWheel spin the. Its // data and methods are static because there is only one wheel. Contains the main processing loop for the roulette game Class Roulette contains the main driver for a roulette game Will someone please look at my roulette program and tell me what to write to "insert a call to the bet_options method from the make_bet method." I've tried everything to call this thing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |