Good! You're on the right track. Don't be hard on your loops, though. Investigate the loop's exit conditions, and investigate why the exit isn't being calculated as desired.
Style points:
...
Type: Posts; User: GregBrannon
Good! You're on the right track. Don't be hard on your loops, though. Investigate the loop's exit conditions, and investigate why the exit isn't being calculated as desired.
Style points:
...
Almost got it. I recommend that you check the spin() method. As Norm suggested, add some print statements to figure out what values are being generated there.
Excellent first post. Thanks for putting some effort into fitting in.
The playGame() method should drive the game's action, but the results of the spin() method are not being applied to each of...
Then do it as you did before. Having a library of tested code that you have confidence in is a valuable tool.
Research the Integer.parseInteger() method.
This is the best collection of opinions on Java books I've seen, but it's just that, a collection of people's opinions. I think most every Java book ever written is listed there and positive things...
I agree with jbarke12 for some of the same and different reasons, primarily though because watching random videos puts you in charge of your syllabus, and when was the last time you developed a...
Of course. One of the many tidbits buried too deep in my head to surface right away. Thanks for explaining.
What are you using as a study guide now? Do you have a textbook? If not, there are a couple good ones available free on the 'net. The best course is to follow a structured guide to learn the...
Great follow-up post.
It seems the first setLocation call puts it roughly where you want it, and the second call fine tunes it or shifts it to where you really want it. That's my sense, but I...
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
Please post your code correctly using code or highlight tags...
Yes, thank you.
Could you please tighten up your code a bit. Why is your indentation all over the place and why are there large gaps between lines. Your code is hard to read, and it doesn't need to be. Post the...
Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
That's a bit of an obscure request, and we'd expect you to find your own...
Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
Thanks jbarke12 for fixing my incomplete answer.
I also wanted to add that you, sash25, should know that the 'x' in the method and the 'x' in the main() method do not refer to the same variable. ...
Ah. A misconception of how things work.
The call to the method, getInt(), causes the method to execute and a value to be returned, but the main() method has to assign or use that value. As you...
Welcome to the Forum! Thanks for taking the time to learn to post code correctly, and if you haven't already, please read this topic to see other useful info for newcomers.
You have a good start...
Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
Please post your code correctly per the above link.
The class name SHOULD...
This is not suggesting a "custom array" but a class of your design called "Book", not "book". In Java, class names begin with capital letters (for a good reason, mostly convention). Then,
Book...
To get you a bump (now 3) and maybe someone who can help you.
Thread moved.
If you describe the problem you're trying to solve, a more appropriate place in the forum may be found. Right now, it's an odd hardware question.
Start with Oracle's Applet Tutorial.
Thread moved.
Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
Please post your code correctly per the above link.