Alright, I got it working! I put the elements into an array list first and then i was able to get all values into an array.
Thanks for the help guys!
Type: Posts; User: breezy
Alright, I got it working! I put the elements into an array list first and then i was able to get all values into an array.
Thanks for the help guys!
Your assumption is right.
Right now I am trying my luck with an ArrayList since I dont need to worry about the index so much.
I'll keep you updated!
Unfortunately I have to use an int array.
I have changed my get method, it gets called with a counter which is incrementet everytime a die is thrown.
The dieHistorie array now gets filled as...
Hey,
im currently working an Dicegame which consists of the classes Wuerfel.java(translates to Dice), Player.java and the executable class DiceGame.java.
In the main method 3 Player-objects are...