Created
January 6, 2019 14:38
-
-
Save cyberrob-zz/dc2460cee46ffdeee933403cb9a2d3c6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Created by robertwang on 2019/1/6. | |
*/ | |
fun main(args: Array<String>) { | |
if (args.size > 3) return | |
val numOfCountries = args[0].toInt() | |
val numOfSystems = args[1].toInt() | |
when { | |
numOfCountries == 1 -> println("Taiwan is NOT part of China!") | |
numOfCountries == 1 && numOfSystems == 2 -> println("See what's happening in HK") | |
numOfCountries == 2 && numOfSystems == 2 -> println("It's Taiwan Consensus!") | |
else -> println("Taiwan is a de-facto state country no matter what you said.") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment