Search:

Type: Posts; User: darter

Search: Search took 0.55 seconds.

  1. Re: Help with creating a dice rolling program in Java

    Well done. The working code, outside sources and explanatory comments are definitely gone. Although I don't think the OP would ever had seen it (he seemed to have left a week ago) there would have...
  2. Replies
    6
    Views
    505

    Re: new to programming

    There is a math function called modulus that will do the work for you.

    The Remainder or Modulus Operator in Java
  3. Re: Help with creating a dice rolling program in Java

    Hello - I was interested in this problem and am new to objects so I looked up an article (in comments) then adapted your code somewhat. Did your code actually roll and produce output or was it...
  4. Re: How to make data available to two different classes - theory and code question

    Thanks Tjstrech, I have used your code to make that work in my own example. One thing I don't get though.

    I think of ClassA classA = new ClassA(5); as being a way to create a new instance (an...
  5. Re: How to make data available to two different classes - theory and code question

    Hello - thanks for reply. This is just a learning exercise so the game is not really important. I just chose Player and Space so they could be used to instantiate objects that have attributes. My...
  6. How to make data available to two different classes - theory and code question

    I am trying to make my first Java program using classes and objects and so I picked a simple game problem to model. (1) Spin wheel (2) Move player 6 spaces (for example) (3) Display all the "spaces"...
  7. Re: Eclipse question from newbie - reading keyboard

    Thanks to all. I fixed the Scanner and used the focus and it now works as expected. Cheers.
  8. Re: Eclipse question from newbie - reading keyboard

    Hello - in the cmd window the "while" loop will accept a key such as "1" or "2" and break out with "7" or greater and this works. But in Eclipse my keystroke inputs are not read, it seems.
  9. Eclipse question from newbie - reading keyboard

    I just installed Eclipse and am wondering if the following is normal. When I run a java program in Eclipse it cannot "read the keyboard" but it can print variable values okay. My program works fine...
Results 1 to 9 of 9