Output must be 1 2 3 4 5 6 7 8 9 10 I have tried While loop but it prints from 10 to 1 Answer Assuming you must use i with an initial value of 10.
Tag: do-while
How to fill ant int array randomly with values from another integer array in Java?
I have an integer array with 40 integer values and need to put these randomly on into another integer array. I have a random number that chooses a random value from the first array, but if that specific integer has already been chosen, it has to pick a new random value, but that last part seems to bug for some