Search:

Type: Posts; User: GregBrannon

Page 1 of 20 1 2 3 4

Search: Search took 0.21 seconds.

  1. Replies
    7
    Views
    1,281

    Re: Project runs infinitely

    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:
    ...
  2. Replies
    7
    Views
    1,281

    Re: Project runs infinitely

    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.
  3. Replies
    7
    Views
    1,281

    Re: Project runs infinitely

    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...
  4. Replies
    3
    Views
    1,080

    Re: ReadLine doesn't work

    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.
  5. Replies
    13
    Views
    1,126

    Re: noob having problem with return...

    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...
  6. Replies
    13
    Views
    1,126

    Re: noob having problem with return...

    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...
  7. Re: Is there a way to specify where on screen a JFrame or a JDialog should appear?

    Of course. One of the many tidbits buried too deep in my head to surface right away. Thanks for explaining.
  8. Replies
    13
    Views
    1,126

    Re: noob having problem with return...

    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...
  9. Re: Is there a way to specify where on screen a JFrame or a JDialog should appear?

    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...
  10. Replies
    4
    Views
    878

    Re: Java - Socket Programming

    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...
  11. Replies
    7
    Views
    1,731

    Re: Creating a separate method for for loop

    Yes, thank you.
  12. Replies
    7
    Views
    1,731

    Re: Creating a separate method for for loop

    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...
  13. Re: Grabbing exchange Data, and creating live graphs from it

    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...
  14. Replies
    1
    Views
    802

    Re: Hello everyone!!

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
  15. Replies
    13
    Views
    1,126

    Re: noob having problem with return...

    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. ...
  16. Replies
    13
    Views
    1,126

    Re: noob having problem with return...

    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...
  17. Thread: Game Menu

    by GregBrannon
    Replies
    1
    Views
    1,145

    Re: Game Menu

    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...
  18. Replies
    1
    Views
    782

    Re: Greetings everyone

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
  19. Replies
    3
    Views
    1,078

    Re: CMD WONT COMPILE MY .JAVA FILES

    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...
  20. Re: need help in creating array with multiple data type in java

    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...
  21. Re: Help for Java method used as an Oracle function

    To get you a bump (now 3) and maybe someone who can help you.
  22. Replies
    3
    Views
    1,833

    Re: Java for CUDA?

    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.
  23. Replies
    2
    Views
    1,592

    Re: Need some answers for Java applet

    Start with Oracle's Applet Tutorial.

    Thread moved.
  24. Replies
    1
    Views
    730

    Re: Greetings everyone!

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.
  25. Re: need help in creating array with multiple data type in java

    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.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4