title: How to generate random string from a collection of strings in Java?
body: <p>Suppose I have a collection of 10 names. And on clicking a button the program should generate a random name from that collection. How is it achieved?</p>