Kin Kinov wrote:Hello everyone, I'm new to programming and java and I'm trying to understand how exactly this piece of code works and what exactly does.
I'm trying to make my first GUI application and to read some person details from a file and then put the result in a Jlist.
Jack Lickman wrote:So I guess there was like a thousands of these topics, but I hope you will help me out anyway...
Noah Osornio wrote:nevermind, it works either way. However, I am experiencing a problem in game where when I roll a number. The numbers don't add up, and if I hold the number will hold, but when I roll its says that if I hold I gain as many numbers as I had in storage. Is there a reason for this?
Noah Osornio wrote:I thought so based on the last statement. Now I wrote the new code, but for some reason the compiler says my else statement is wrong? I checked my previous one and performed the same steps, but I am still getting this error for some reason.
Noah Osornio wrote:So, if it goes to the winner by default if the limit is reached. One more question if you don't mind. Do I need any booleans to make this work or can I get by with only int? Also, what does "<>" mean?
Noah Osornio wrote:okay, thank you for your help. The way you organized it also helps because I didn't know how to place in the code for both the human and the computer when they are less then 100, but placing it in the first while loop makes sense. Does that mean there should be another while loop for those who reach over one hundred or is that nested inside?
Noah Osornio wrote:seems to be the case. Now I understand that the while loops are actually the end of do-while loop which explains somethings.
Noah Osornio wrote:yes, the human always goes first. Also, I never thought of having it in English form (it sure does make more sense). Thanks, I will try making a code with that in mind.
Noah Osornio wrote:I am creating a pig game (dice game) for my CS 140 class. ...When the game runs, it only runs through the human turn and the AI's turn, but then stops after that. My question is how do I keep the game going? Any help will be great.
Omkant Parashetty wrote:
Can some one please explain why we are not able to read second string in this program.
Madu Biradar wrote:I want to get SCJA SE 7 (India )so what i need to do? how to get voucher and certification?