I'm new to Android and I'm looking for the best and quickest way to randomize the ranking of a string[] array while tracking one of the strings therein.
The array is typically just 5 strings long e.g.
a) input
String[] All = {"apple", "fish", "cat, "dog", "mouse"}
b) output (one of many)
String[] All = {"fish", "dog", "cat, "apple", "mouse"}
The thing is that the target string would be 'apple' that needs to be tracked after its randomized. In other words, I want to know where the apple is (in the case of output above, apple is All[3])
How do I go about doing this?