Sunday, 25 August 2013

How to generate random string from a collection of strings in Java?

How to generate random string from a collection of strings in Java?

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?

No comments:

Post a Comment