Skip to content

Instantly share code, notes, and snippets.

@ThanawatMas
Last active December 2, 2018 17:07
Show Gist options
  • Save ThanawatMas/21f19433fa70482dbc7a84581dae21de to your computer and use it in GitHub Desktop.
Save ThanawatMas/21f19433fa70482dbc7a84581dae21de to your computer and use it in GitHub Desktop.
public class Experiment {
private static final long WAIT_TIME = TimeUnit.SECONDS.toMillis(1);
private static void wait1Seconds() {
try {
Thread.sleep(WAIT_TIME);
System.out.println();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
MergeOperation mergeOperation = new MergeOperation();
ZipOperation zipOperation = new ZipOperation();
try {
mergeOperation.runSmoothAtSilk();
} catch (Exception e) {
e.printStackTrace();
}
wait1Seconds();
try {
zipOperation.runSmoothAtSilk();
} catch (Exception e) {
e.printStackTrace();
}
wait1Seconds();
try {
mergeOperation.runStickWithProblem();
} catch (Exception e) {
e.printStackTrace();
}
wait1Seconds();
try {
zipOperation.runStickWithProblem();
} catch (Exception e) {
e.printStackTrace();
}
wait1Seconds();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment