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...
Type: Posts; User: darter
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...
There is a math function called modulus that will do the work for you.
The Remainder or Modulus Operator 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...
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...
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...
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"...
Thanks to all. I fixed the Scanner and used the focus and it now works as expected. Cheers.
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.
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...