BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int sampleCount = 0;
for (int i=0; i < SampleInfrastructure.sampleClasses.length; i++) {
Constructor c = SampleInfrastructure.sampleClasses[i].getConstructor(constructorArgTypes);
SampleBase sample = (SampleBase)c.newInstance(constructorArgs);
if(sample.getSampleComplexityLevel() <= runSamplesUpToLevel) {
sample.run();
sampleCount++;
if(pauseBetweenSamples) {
System.out.println(">>>Press Enter to continue");
in.readLine();
}