/* * Written by Doug Lea and Josh Bloch with assistance from members of * JCP JSR-166 Expert Group and released to the public domain, as * explained at http://creativecommons.org/licenses/publicdomain */ import java.util.*; public class SetBash { static Random rnd = new Random(); public static void main(String[] args) { int numItr = Integer.parseInt(args[1]); int setSize = Integer.parseInt(args[2]); Class cl = null; try { cl = Class.forName(args[0]); } catch(ClassNotFoundException e) { fail("Class " + args[0] + " not found."); } boolean synch = (args.length>3); for (int i=0; i