Quantcast
Channel: Randomizing in Java - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Greg Kramida for Randomizing in Java

You can use Collections.shuffle().

View Article



Answer by Joey for Randomizing in Java

You can use Collections.shuffle():List<String> names = new ArrayList<String>();names.add("Bob");names.add("Jane");names.add("Tim");names.add("Sara");Collections.shuffle(names);person_one =...

View Article

Randomizing in Java

I have 4 Strings to represent people and 4 Strings to represent names.I'm trying to randomize them so that every time I start my application, my four people will have different names, but no one can...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images