Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Let there be light.
doco
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
If you had generated the number 3 it would have been OK.
Let there be light.
doco
Hey Maulin, I was going to try that, but I thought I could be slick and use the arraylist to do it for me. I think with that method, I wont even need to check the random number. I can just add the num1 to the end of the duck object.
Originally posted by Donald R. Cossitt:
So, just how would one 'force' a sequential number from a 'random' event (so much for random walk theory)? This would lead me to ask the question: is this approach taken the best one?
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |