Shuffle logic int array access data randomly Java

Shuffle logic int array access data randomly Java

This question was asked during Amazon interview where interviewer wanted to write full implementation using java and details question was below:

  • Can you write shuffle logic for int array value and access its data randomly in java ?

ShuffleArray.java:

  • Output:

Shuffle logic int array access data randomly Java

For more information on Shuffle logic please refer Oracle documentation logic here

Leave a Reply

Your email address will not be published. Required fields are marked *