arr=[2,3,1,1,4] Collections.shuffle(arr) println arr firstElem= arr.first() println firstElem print: [1,3,1,4,2] 1
I want to print position = 2
how can I print firstElem position? Please help
2.1m questions
2.1m answers
60 comments
57.0k users