Last active
December 2, 2018 17:07
-
-
Save ThanawatMas/21f19433fa70482dbc7a84581dae21de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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