I have a couple of issues with this program:
1. i'm not sure on how to write so that if the users_num is greater than 21 it should ask if the user would want to play again. i tried putting break; after the if statement but that just exits out of the whole thing and goes to the main method and adding an else break would do the same thing.
[code=java]
betting_amount = in.nextInt();
// computer generates...
User Profile
Collapse
-
problem with a do while
-
Jos thanks so much!!! i get it now. i keep forgetting that counting start at 0. (hope that's right) oh man i did this trace about 6 times... -
i used the eclipse debugger. i'm not understanding why
System.out.prin t(w.charAt(star t)); prints out nothing instead of "n"...Leave a comment:
-
tracing a program by hand
I am trying to trace the program below but I am not understanding certain lines of codes. I made tables for each function with their variables to keep track as they change. The program output is suppose to be "it is fall" but i'm not getting that. as tabulated in the OUTPUT table i got "ni is eiall."
"n" because of System.out.prin t(w.charAt(star t)); since start=2 --i'm not sure if that is correct.
could...
No activity results to display
Show More
Leave a comment: